Home | History | Annotate | Download | only in Sema

Lines Matching defs:Diag

172   S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II;
314 PDiag(diag::err_unknown_type_or_class_name_suggest)
434 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II;
525 diagnoseTypo(Corrected, PDiag(diag::err_unknown_typename_suggest) << II);
531 PDiag(diag::err_unknown_typename_suggest) << II);
537 PDiag(diag::err_unknown_nested_typename_suggest)
567 Diag(IILoc, diag::err_template_missing_args) << TplName;
569 Diag(TplDecl->getLocation(), diag::note_template_decl_here)
580 Diag(IILoc, diag::err_unknown_typename) << II;
582 Diag(IILoc, diag::err_typename_nested_not_found)
585 unsigned DiagID = diag::err_typename_missing;
587 DiagID = diag::ext_typename_missing;
589 Diag(SS->getRange().getBegin(), DiagID)
649 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
655 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
767 unsigned UnqualifiedDiag = diag::err_undeclared_var_use_suggest;
768 unsigned QualifiedDiag = diag::err_no_member_suggest;
775 UnqualifiedDiag = diag::err_no_template_suggest;
776 QualifiedDiag = diag::err_no_member_template_suggest;
781 UnqualifiedDiag = diag::err_unknown_typename_suggest;
782 QualifiedDiag = diag::err_unknown_nested_typename_suggest;
1472 DiagID = diag::warn_unused_exception_param;
1474 DiagID = diag::warn_unused_label;
1476 DiagID = diag::warn_unused_variable;
1478 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint;
1486 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
1544 diagnoseTypo(C, PDiag(diag::err_undef_interface_suggest) << Id);
1625 Diag(Loc, diag::warn_implicit_decl_requires_stdio)
1631 Diag(Loc, diag::warn_implicit_decl_requires_setjmp)
1637 Diag(Loc, diag::warn_implicit_decl_requires_ucontext)
1643 Diag(Loc, diag::ext_implicit_lib_function_decl)
1647 !Diags.isIgnored(diag::ext_implicit_lib_function_decl, Loc))
1648 Diag(Loc, diag::note_please_include_header)
1741 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef)
1744 Diag(Old->getLocation(), diag::note_previous_definition);
1754 Diag(New->getLocation(), diag::err_redefinition_different_typedef)
1757 Diag(Old->getLocation(), diag::note_previous_definition);
1818 Diag(New->getLocation(), diag::err_redefinition_different_kind)
1823 Diag(OldD->getLocation(), diag::note_previous_definition);
1879 Diag(New->getLocation(), diag::err_redefinition)
1881 Diag(Old->getLocation(), diag::note_previous_definition);
1898 Diag(New->getLocation(), diag::warn_redefinition_of_typedef)
1900 Diag(Old->getLocation(), diag::note_previous_definition);
2000 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch)
2003 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration);
2016 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition)
2018 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration)
2136 unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() ==
2138 ? diag::err_alias_after_tentative
2139 : diag::err_redefinition;
2140 S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
2141 S.Diag(Def->getLocation(), diag::note_previous_definition);
2175 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition)
2177 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration)
2185 S.Diag(NewAttribute->getLocation(),
2186 diag::warn_attribute_precede_definition);
2187 S.Diag(Def->getLocation(), diag::note_previous_definition);
2261 S.Diag(CDA->getLocation(),
2262 diag::err_carries_dependency_missing_on_first_decl) << 1/*Param*/;
2269 S.Diag(FirstVD->getLocation(),
2270 diag::note_carries_dependency_missing_first_decl) << 1/*Param*/;
2332 static std::pair<diag::kind, SourceLocation>
2334 diag::kind PrevDiag;
2337 PrevDiag = diag::note_previous_definition;
2339 PrevDiag = diag::note_previous_implicit_declaration;
2343 PrevDiag = diag::note_previous_declaration;
2397 Diag(New->getLocation(), diag::err_using_decl_friend);
2398 Diag(Shadow->getTargetDecl()->getLocation(),
2399 diag::note_using_decl_target);
2400 Diag(Shadow->getUsingDecl()->getLocation(),
2401 diag::note_using_decl) << 0;
2420 Diag(New->getLocation(), diag::err_using_decl_conflict_reverse);
2421 Diag(Shadow->getTargetDecl()->getLocation(),
2422 diag::note_using_decl_target);
2423 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
2428 Diag(New->getLocation(), diag::err_redefinition_different_kind)
2430 Diag(OldD->getLocation(), diag::note_previous_definition);
2439 diag::kind PrevDiag;
2454 Diag(New->getLocation(), diag::ext_static_non_static) << New;
2455 Diag(OldLocation, PrevDiag);
2457 Diag(New->getLocation(), diag::err_static_non_static) << New;
2458 Diag(OldLocation, PrevDiag);
2499 Diag(New->getLocation(), diag::err_cconv_change)
2506 Diag(First->getLocation(), diag::note_previous_declaration);
2521 Diag(New->getLocation(), diag::err_regparm_mismatch)
2524 Diag(OldLocation, diag::note_previous_declaration);
2535 Diag(New->getLocation(), diag::err_returns_retained_mismatch);
2536 Diag(OldLocation, diag::note_previous_declaration);
2597 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type)
2600 Diag(New->getLocation(), diag::err_ovl_diff_return_type)
2602 Diag(OldLocation, PrevDiag) << Old << Old->getType()
2648 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member);
2649 Diag(OldLocation, PrevDiag) << Old << Old->getType();
2660 NewDiag = diag::err_constructor_redeclared;
2662 NewDiag = diag::err_destructor_redeclared;
2664 NewDiag = diag::err_conv_function_redeclared;
2666 NewDiag = diag::err_member_redeclared;
2668 Diag(New->getLocation(), NewDiag);
2670 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation)
2673 Diag(OldLocation, PrevDiag) << Old << Old->getType();
2684 Diag(NewMethod->getLocation(),
2685 diag::err_definition_of_implicitly_declared_member)
2690 Diag(NewMethod->getLocation(),
2691 diag::err_definition_of_explicitly_defaulted_member)
2703 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl);
2704 Diag(Old->getFirstDecl()->getLocation(),
2705 diag::note_noreturn_missing_first_decl);
2714 Diag(CDA->getLocation(),
2715 diag::err_carries_dependency_missing_on_first_decl) << 0/*Function*/;
2716 Diag(Old->getFirstDecl()->getLocation(),
2717 diag::note_carries_dependency_missing_first_decl) << 0/*Function*/;
2745 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New;
2746 Diag(OldLocation, PrevDiag);
2748 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
2749 Diag(OldLocation, PrevDiag);
2851 Diag(Warnings[Warn].NewParm->getLocation(),
2852 diag::ext_param_promoted_not_compatible_with_prototype)
2856 Diag(Warnings[Warn].OldParm->getLocation(),
2857 diag::note_previous_declaration);
2879 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New;
2880 Diag(OldLocation, diag::note_previous_builtin_declaration)
2897 PrevDiag = diag::note_previous_builtin_declaration;
2900 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
2901 Diag(OldLocation, PrevDiag) << Old << Old->getType();
3044 Diag(New->getLocation(), diag::err_redefinition_different_type)
3046 Diag(Old->getLocation(), diag::note_previous_definition);
3111 Diag(New->getLocation(), diag::err_redefinition_different_kind)
3113 Diag(Previous.getRepresentativeDecl()->getLocation(),
3114 diag::note_previous_definition);
3133 Diag(New->getLocation(), diag::err_duplicate_member)
3135 Diag(Old->getLocation(), diag::note_previous_declaration);
3145 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName();
3146 Diag(Old->getLocation(), diag::note_previous_definition);
3157 diag::kind PrevDiag;
3167 Diag(New->getLocation(), diag::ext_static_non_static)
3169 Diag(OldLocation, PrevDiag);
3171 Diag(New->getLocation(), diag::err_static_non_static)
3173 Diag(OldLocation, PrevDiag);
3191 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName();
3192 Diag(OldLocation, PrevDiag);
3199 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName();
3200 Diag(OldLocation, PrevDiag);
3205 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName();
3206 Diag(OldLocation, PrevDiag);
3218 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName();
3219 Diag(OldLocation, PrevDiag);
3225 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName();
3226 Diag(OldLocation, PrevDiag);
3228 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName();
3229 Diag(OldLocation, PrevDiag);
3235 Diag(New->getLocation(), diag::err_thread_thread_different_kind)
3237 Diag(OldLocation, PrevDiag);
3246 Diag(New->getLocation(), diag::err_redefinition) << New;
3247 Diag(Def->getLocation(), diag::note_previous_definition);
3253 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
3254 Diag(OldLocation, PrevDiag);
3347 Diag(DS.getRestrictSpecLoc(),
3348 diag::err_typecheck_invalid_restrict_not_pointer_noarg)
3356 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_tag)
3362 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_no_declarators);
3386 Diag(SS.getBeginLoc(), diag::err_standalone_class_nested_name_specifier)
3422 Diag(DS.getLocStart(), diag::ext_ms_anonymous_struct)
3443 Diag(DS.getLocStart(), diag::ext_typedef_without_a_name)
3451 Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class)
3468 Diag(DS.getLocStart(), diag::ext_no_declarators) << DS.getSourceRange();
3480 unsigned DiagID = diag::warn_standalone_specifier;
3482 DiagID = diag::ext_standalone_specifier;
3491 Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_nonmember);
3493 Diag(DS.getStorageClassSpecLoc(), DiagID)
3498 Diag(DS.getThreadStorageClassSpecLoc(), DiagID)
3502 Diag(DS.getConstSpecLoc(), DiagID) << "const";
3504 Diag(DS.getConstSpecLoc(), DiagID) << "volatile";
3507 Diag(DS.getAtomicSpecLoc(), DiagID) << "_Atomic";
3522 Diag(attrs->getLoc(), diag::warn_declspec_attribute_ignored)
3560 SemaRef.Diag(NameLoc, diagnostic) << Name;
3561 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
3589 = AnonRecord->isUnion() ? diag::err_anonymous_union_member_redecl
3590 : diag::err_anonymous_struct_member_redecl;
3689 S.Diag(DefaultInitLoc, diag::err_multiple_mem_union_initialization);
3690 S.Diag(findDefaultInitializer(Parent), diag::note_previous_initializer) << 0;
3713 Diag(Record->getLocation(), diag::ext_anonymous_union);
3715 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct);
3717 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct);
3733 Diag(Record->getLocation(), diag::err_anonymous_union_not_static)
3745 Diag(DS.getStorageClassSpecLoc(),
3746 diag::err_anonymous_union_with_storage_spec)
3759 Diag(DS.getConstSpecLoc(), diag::ext_anonymous_struct_union_qualified)
3763 Diag(DS.getVolatileSpecLoc(),
3764 diag::ext_anonymous_struct_union_qualified)
3768 Diag(DS.getRestrictSpecLoc(),
3769 diag::ext_anonymous_struct_union_qualified)
3773 Diag(DS.getAtomicSpecLoc(),
3774 diag::ext_anonymous_struct_union_qualified)
3792 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member)
3816 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type)
3820 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type)
3828 Diag(MemRecord->getLocation(),
3829 diag::ext_anonymous_record_with_anonymous_type)
3839 unsigned DK = diag::err_anonymous_record_bad_member;
3841 DK = diag::err_anonymous_record_with_type;
3843 DK = diag::err_anonymous_record_with_function;
3845 DK = diag::err_anonymous_record_with_static;
3849 DK == diag::err_anonymous_record_with_type)
3850 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type)
3853 Diag(Mem->getLocation(), DK)
3870 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member)
3900 Diag(Record->getLocation(), diag::err_mutable_nonmember);
4263 Diag(NameInfo.getLoc(), diag::err_member_name_of_class) << Name;
4301 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification
4302 : diag::err_member_extra_qualification)
4306 Diag(Loc, diag::warn_namespace_member_extra_qualification) << Name;
4315 Diag(Loc, diag::err_member_qualification)
4318 Diag(Loc, diag::err_invalid_declarator_global_scope)
4321 Diag(Loc, diag::err_invalid_declarator_in_function)
4324 Diag(Loc, diag::err_invalid_declarator_in_block)
4327 Diag(Loc, diag::err_invalid_declarator_scope)
4335 Diag(Loc, diag::err_member_qualification)
4359 Diag(Loc, diag::err_decltype_in_declarator)
4375 Diag(D.getDeclSpec().getLocStart(),
4376 diag::err_declarator_need_ident)
4403 Diag(D.getIdentifierLoc(),
4404 diag::err_template_qualified_declarator_no_match)
4416 Diag(D.getIdentifierLoc(),
4417 diag::err_member_def_undefined_record)
4545 Diag(D.getIdentifierLoc(), diag::err_template_typedef);
4735 Diag(DS.getInlineSpecLoc(),
4736 diag::err_inline_non_function);
4739 Diag(DS.getVirtualSpecLoc(),
4740 diag::err_virtual_non_function);
4743 Diag(DS.getExplicitSpecLoc(),
4744 diag::err_explicit_non_function);
4747 Diag(DS.getNoreturnSpecLoc(),
4748 diag::err_noreturn_non_function);
4756 Diag(D.getIdentifierLoc(), diag::err_qualified_typedef_declarator)
4767 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr)
4771 Diag(D.getName().StartLocation, diag::err_typedef_not_identifier)
4809 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
4813 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
4815 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
4817 Diag(NewTD->getLocation(), diag::err_array_too_large)
4820 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
4943 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var)
4960 Diag(var->getLocation(), diag::err_arc_thread_ownership)
4977 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static);
4983 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static);
4992 S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data);
5000 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
5007 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
5041 S.Diag(NewDecl->getLocation(), diag::err_attribute_dll_redeclaration)
5044 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5061 S.Diag(NewDecl->getLocation(),
5062 diag::warn_redeclaration_without_attribute_prev_attribute_ignored)
5064 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5065 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute);
5227 Diag(D.getIdentifierLoc(), diag::err_opencl_function_pointer_variable);
5238 Diag(D.getIdentifierLoc(), diag::err_opencl_half_declaration) << R;
5247 Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember);
5258 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5259 diag::warn_deprecated_register)
5265 Diag(D.getIdentifierLoc(), diag::err_bad_variable_name)
5277 Diag(D.getIdentifierLoc(), diag::err_typecheck_sclass_fscope);
5294 Diag(D.getIdentifierLoc(), diag::err_wrong_sampler_addressspace);
5303 Diag(D.getLocStart(), diag::err_event_t_global_var);
5308 Diag(D.getLocStart(), diag::err_event_t_addr_space_qual);
5337 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5338 diag::err_static_out_of_line)
5349 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5350 diag::err_storage_class_for_static_member)
5363 Diag(D.getIdentifierLoc(),
5364 diag::err_static_data_member_not_allowed_in_local_class)
5370 Diag(D.getIdentifierLoc(),
5372 ? diag::warn_cxx98_compat_static_data_member_in_union
5373 : diag::ext_static_data_member_in_union) << Name;
5376 Diag(D.getIdentifierLoc(),
5377 diag::err_static_data_member_not_allowed_in_anon_struct)
5398 Diag(TemplateParams->getTemplateLoc(),
5399 diag::err_template_variable_noparams)
5419 Diag(D.getIdentifierLoc(),
5421 ? diag::warn_cxx11_compat_variable_template
5422 : diag::ext_variable_template);
5501 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
5502 diag::err_thread_non_global)
5505 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
5506 diag::err_thread_unsupported);
5524 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5525 diag::warn_static_local_in_extern_inline);
5532 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
5537 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
5541 Diag(NewVD->getLocation(), diag::err_module_private_local)
5586 Diag(E->getExprLoc(), diag::warn_asm_label_on_auto_decl) << Label;
5591 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label;
5602 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label;
5604 Diag(D.getLocStart(), diag::err_asm_bad_register_type);
5655 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line)
5662 Diag(D.getIdentifierLoc(), diag::err_no_member)
5744 if (Diags.isIgnored(diag::warn_decl_shadow, R.getNameLoc()))
5811 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC;
5812 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
5817 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation()))
5896 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict)
5898 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
5959 Diag(NewVD->getLocation(), diag::err_statically_allocated_object)
5970 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl);
5980 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space);
5989 Diag(NewVD->getLocation(), diag::err_static_function_scope);
5997 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local);
6000 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
6023 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope)
6026 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage)
6029 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage)
6037 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope);
6039 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage);
6044 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
6053 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type)
6061 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal);
6067 Diag(NewVD->getLocation(), diag::err_block_on_vm);
6074 diag::err_constexpr_var_non_literal)) {
6167 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName();
6173 // out the diag loop 3 times.
6177 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function);
6209 ReportOverrides(*this, diag::err_non_deleted_override, MD, OEK_Deleted);
6212 ReportOverrides(*this, diag::err_deleted_override, MD, OEK_NonDeleted);
6291 unsigned DiagMsg = IsLocalFriend ? diag::err_no_matching_local_friend
6292 : diag::err_member_decl_does_not_match;
6373 ? diag::err_no_matching_local_friend_suggest
6374 : diag::err_member_decl_does_not_match_suggest)
6387 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
6407 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match
6408 : diag::note_local_decl_close_param_match)
6412 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
6415 SemaRef.Diag(FD->getLocation(),
6416 IsMember ? diag::note_member_def_close_match
6417 : diag::note_local_decl_close_match);
6429 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
6430 diag::err_typecheck_sclass_func);
6445 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
6446 diag::err_static_block_func);
6501 diag::err_abstract_type_in_decl, SemaRef.AbstractReturnType))
6540 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member);
6554 SemaRef.Diag(D.getIdentifierLoc(),
6555 diag::err_conv_function_not_member);
6573 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
6654 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param);
6662 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param);
6676 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
6747 S.Diag(Param->getLocation(),
6748 diag::err_record_with_pointers_kernel_param)
6752 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
6755 S.Diag(PD->getLocation(), diag::note_within_field_of_type)
6763 Diag(OuterField->getLocation(), diag::note_within_field_of_type)
6767 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here)
6791 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
6792 diag::err_invalid_thread)
6876 Diag(NewFD->getLocation(), diag::err_destructor_template);
6928 Diag(D.getIdentifierLoc(), diag::err_template_spec_decl_friend)
6958 Diag(D.getDeclSpec().getVirtualSpecLoc(),
6959 diag::err_virtual_non_function);
6962 Diag(D.getDeclSpec().getVirtualSpecLoc(),
6963 diag::err_virtual_out_of_class)
6968 Diag(D.getDeclSpec().getVirtualSpecLoc(),
6969 diag::err_virtual_member_function_template)
6978 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual);
7005 Diag(D.getDeclSpec().getInlineSpecLoc(),
7006 diag::err_inline_declaration_block_scope) << Name
7018 Diag(D.getDeclSpec().getExplicitSpecLoc(),
7019 diag::err_explicit_out_of_class)
7025 Diag(D.getDeclSpec().getExplicitSpecLoc(),
7026 diag::err_explicit_non_ctor_or_conv_function)
7040 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor);
7048 Diag(ModulePrivateLoc, diag::err_module_private_specialization)
7101 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
7102 diag::err_static_out_of_line)
7207 Diag(NewFD->getLocation(), diag::err_vm_func_decl);
7245 Diag(NewFD->getLocation(),
7246 diag::err_opencl_return_value_with_address_space);
7280 Diag(D.getDeclSpec().getInlineSpecLoc(),
7281 diag::ext_operator_new_delete_declared_inline)
7301 Diag(D.getIdentifierLoc(), diag::err_function_template_partial_spec)
7343 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
7344 diag::ext_function_specialization_in_class :
7345 diag::err_function_specialization_in_class)
7360 Diag(NewFD->getLocation(),
7361 diag::err_explicit_specialization_inconsistent_storage_class)
7367 Diag(NewFD->getLocation(),
7368 diag::ext_explicit_specialization_storage_class)
7500 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration)
7512 Diag(NewFD->getLocation(),
7513 diag::err_attribute_overloadable_no_prototype)
7568 Diag(D.getIdentifierLoc(), diag::err_static_kernel);
7575 Diag(D.getIdentifierLoc(), diag::err_expected_kernel_void_return_type)
7594 Diag(NewFD->getLocation(), diag::err_config_scalar_return);
7682 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing)
7690 Diag(OverloadedDecl->getLocation(),
7691 diag::note_attribute_overloadable_prev_overload);
7711 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing)
7713 Diag(Previous.getFoundDecl()->getLocation(),
7714 diag::note_attribute_overloadable_prev_overload);
7757 Diag(MD->getLocation(), diag::warn_cxx1y_compat_constexpr_not_const)
7840 Diag(NewFD->getLocation(), diag::err_destructor_name);
7858 ReportOverrides(*this, diag::err_static_overrides_virtual, Method);
7907 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)
7911 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R;
7926 Diag(DS.getStorageClassSpecLoc(), getLangOpts().CPlusPlus
7927 ? diagdiag::warn_static_main)
7930 Diag(DS.getInlineSpecLoc(), diag::err_inline_main)
7935 Diag(NoreturnLoc, diag::ext_noreturn_main);
7936 Diag(NoreturnLoc, diag::note_main_remove_noreturn)
7940 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_main)
7946 Diag(FD->getLocation(), diag::err_opencl_no_main)
7965 Diag(FD->getTypeSpecStartLoc(), diag::ext_main_returns_nonint);
7968 Diag(RTRange.getBegin(), diag::note_main_change_return_type)
7982 Diag(FD->getTypeSpecStartLoc(), diag::err_main_returns_nonint)
8005 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams;
8042 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i];
8049 Diag(FD->getLocation(), diag::warn_main_one_arg);
8053 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
8073 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
8090 Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant)
8218 unsigned diag;
8220 diag = diag::warn_uninit_self_reference_in_reference_init;
8222 diag = diag::warn_static_self_reference_in_init;
8224 diag = diag::warn_uninit_self_reference_in_init;
8228 S.PDiag(diag)
8277 Diag(Method->getLocation(), diag::err_member_function_initialization)
8287 Diag(RealDecl->getLocation(), diag::err_illegal_initializer);
8302 Diag(CXXDirectInit->getLocStart(),
8303 VDecl->isInitCapture() ? diag::err_init_capture_no_expression
8304 : diag::err_auto_var_init_no_expression)
8310 Diag(CXXDirectInit->getExpr(1)->getLocStart(),
8312 ? diag::err_init_capture_multiple_expressions
8313 : diag::err_auto_var_init_multiple_expressions)
8321 Diag(CXXDirectInit->getLocStart(),
8322 diag::err_auto_var_init_paren_braces)
8364 Diag(Loc, diag::warn_auto_var_is_id)
8384 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition);
8391 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init);
8404 diag::err_typecheck_decl_incomplete_type)) {
8411 diag::err_abstract_type_in_decl,
8418 Diag(VDecl->getLocation(), diag::err_redefinition)
8420 Diag(Def->getLocation(), diag::note_previous_definition);
8440 Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization)
8442 Diag(PrevInit->getInit()->getExprLoc(), diag::note_previous_initializer) << 0;
8458 Diag(VDecl->getLocation(), diag::err_local_cant_init);
8536 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak,
8579 Diag(Culprit->getExprLoc(),
8580 diag::ext_aggregate_init_not_constant)
8616 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const)
8627 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile);
8635 Diag(Loc, diag::ext_in_class_initializer_non_constant)
8640 Diag(Loc, diag::err_in_class_initializer_non_constant)
8650 Diag(VDecl->getLocation(),
8651 diag::ext_in_class_initializer_float_type_cxx11)
8653 Diag(VDecl->getLocStart(),
8654 diag::note_in_class_initializer_float_type_cxx11)
8657 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type)
8661 Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant)
8669 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type)
8675 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type)
8685 Diag(VDecl->getLocation(), diag::warn_extern_init);
8740 diag::err_typecheck_decl_incomplete_type)) {
8747 diag::err_abstract_type_in_decl,
8768 Diag(Var->getLocation(), diag::err_auto_var_requires_init)
8782 Diag(Var->getLocation(),
8783 diag::err_constexpr_static_mem_var_requires_init)
8786 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl);
8796 Diag(Var->getLocation(), diag::err_opencl_constant_no_init);
8821 diag::err_typecheck_decl_incomplete_type))
8827 diag::err_abstract_type_in_decl,
8832 Diag(Var->getLocation(), diag::warn_private_extern);
8833 Diag(Var->getLocation(), diag::note_private_extern);
8849 diag::err_illegal_decl_array_incomplete_type))
8863 diag::ext_typecheck_decl_incomplete_type);
8876 Diag(Var->getLocation(),
8877 diag::err_typecheck_incomplete_array_needs_initializer);
8885 Diag(Var->getLocation(), diag::err_reference_var_requires_init)
8903 diag::err_typecheck_decl_incomplete_type)) {
8911 diag::err_abstract_type_in_decl,
8974 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var);
9007 Diag(VD->getOuterLocStart(), diag::err_for_range_storage_class)
9072 !getDiagnostics().isIgnored(diag::warn_missing_variable_declarations,
9080 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var;
9089 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor);
9091 Diag(var->getLocation(), diag::note_use_thread_local);
9099 Diag(Culprit->getExprLoc(), diag::err_thread_dynamic_init)
9102 Diag(var->getLocation(), diag::note_use_thread_local);
9166 !getDiagnostics().isIgnored(diag::warn_global_constructor,
9174 Diag(var->getLocation(), diag::warn_global_constructor)
9185 diag::note_invalid_subexpr_in_const_expr) {
9189 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init)
9192 Diag(Notes[I].first, Notes[I].second);
9244 Diag(VD->getLocation(),
9246 ? diag::warn_attribute_dllimport_static_field_definition
9247 : diag::err_attribute_dllimport_static_field_definition);
9248 Diag(IA->getLocation(), diag::note_attribute);
9256 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr;
9265 Diag(VD->getLocation(), diag::err_tentative_after_alias)
9267 Diag(Def->getLocation(), diag::note_previous_definition);
9297 Diag(I->getRange().getBegin(),
9298 diag::err_type_tag_for_datatype_not_ice)
9303 Diag(I->getRange().getBegin(),
9304 diag::err_type_tag_for_datatype_too_large)
9374 Diag(D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(),
9375 diag::err_auto_different_deductions)
9404 if (Diags.isIgnored(diag::warn_doc_param_not_found, Group[0]->getLocation()))
9452 Diag(DS.getStorageClassSpecLoc(),
9453 diag::err_invalid_storage_class_in_func_decl);
9458 Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_thread)
9461 Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr)
9476 Diag(D.getIdentifierLoc(), diag::err_qualified_param_declarator)
9487 Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name)
9506 Diag(D.getIdentifierLoc(), diag::err_param_redefinition) << II;
9507 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
9542 Diag(New->getLocation(), diag::err_module_private_local)
9548 Diag(New->getLocation(), diag::err_block_on_nonlocal);
9578 Diag((*Param)->getLocation(), diag::warn_unused_parameter)
9596 Diag(D->getLocation(), diag::warn_return_value_size)
9608 Diag((*Param)->getLocation(), diag::warn_parameter_size)
9631 NameLoc, diag::err_arc_array_param_no_ownership, T, false));
9649 RequireNonAbstractType(NameLoc, T, diag::err_abstract_type_in_decl,
9657 Diag(NameLoc,
9658 diag::err_object_cannot_be_passed_returned_by_value) << 1 << T
9672 Diag(NameLoc, diag::err_arg_with_address_space);
9693 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared)
9796 Diag(FD->getLocation(), diag::err_redefinition_extern_inline)
9799 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName();
9801 Diag(Definition->getLocation(), diag::note_previous_definition);
9888 Diag(FD->getLocation(), diag::err_builtin_definition) << FD;
9899 diag::err_func_def_incomplete_result))
9909 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD;
9918 Diag(PossibleZeroParamPrototype->getLocation(),
9919 diag::note_declaration_not_a_prototype)
9990 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition);
10000 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container);
10092 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto)
10124 Diag(FD->getLocation(), diag::warn_pure_function_definition);
10159 Diag(MD->getLocEnd(), diag::warn_objc_missing_super_call)
10183 Diag(MD->getLocation(),
10184 diag::warn_objc_designated_init_missing_super_call);
10185 Diag(InitMethod->getLocation(),
10186 diag::note_objc_designated_init_marked_here);
10193 Diag(MD->getLocation(), diag::warn_objc_secondary_init_missing_init_call);
10289 Diag(Loc, diag::warn_use_out_of_scope_declaration) << ExternCPrev;
10290 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration);
10297 diag_id = diag::warn_builtin_unknown;
10299 diag_id = diag::ext_implicit_function_decl;
10301 diag_id = diag::warn_implicit_function_decl;
10302 Diag(Loc, diag_id) << &II;
10312 diagnoseTypo(Corrected, PDiag(diag::note_function_suggestion),
10485 Diag(NewTD->getLocation(), diag::err_module_private_local)
10526 Diag(D.getIdentifierLoc(), diag::err_typedef_changes_linkage);
10534 Diag(tagLoc, diag::note_typedef_changes_linkage)
10564 Diag(UnderlyingLoc, diag::err_enum_invalid_underlying) << T;
10576 Diag(EnumLoc, diag::err_enum_redeclare_scoped_mismatch)
10578 Diag(Prev->getLocation(), diag::note_previous_declaration);
10588 Diag(EnumLoc, diag::err_enum_redeclare_type_mismatch)
10590 Diag(Prev->getLocation(), diag::note_previous_declaration)
10595 Diag(EnumLoc, diag::err_enum_redeclare_fixed_mismatch)
10597 Diag(Prev->getLocation(), diag::note_previous_declaration);
10662 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch)
10681 Diag(NewTagLoc, diag::warn_struct_class_previous_tag_mismatch)
10685 Diag(I->getInnerLocStart(), diag::note_struct_class_suggestion)
10703 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch)
10706 Diag(Redecl->getLocation(), diag::note_previous_use);
10710 Diag(NewTagLoc, diag::note_struct_class_suggestion)
10763 Diag(KWLoc, diag::err_enum_template);
10784 Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams)
10851 Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec)
10881 Diag(NameLoc, diag::err_not_tag_in_scope)
11078 Diag(KWLoc, diag::err_use_with_wrong_tag)
11083 Diag(KWLoc, diag::err_use_with_wrong_tag) << Name;
11084 Diag(PrevTagDecl->getLocation(), diag::note_previous_use);
11103 Diag(ScopedEnumKWLoc, diag::err_enum_class_reference)
11129 Diag(NameLoc, diag::ext_member_redeclared);
11130 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration);
11169 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name;
11171 Diag(NameLoc, diag::err_redefinition) << Name;
11172 Diag(Def->getLocation(), diag::note_previous_definition);
11186 Diag(NameLoc, diag::err_nested_redefinition) << Name;
11187 Diag(PrevTagDecl->getLocation(),
11188 diag::note_previous_definition);
11235 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind;
11236 Diag(PrevDecl->getLocation(), diag::note_declared_at);
11250 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind;
11251 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
11259 Diag(NameLoc, diag::err_tag_definition_of_typedef)
11261 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
11268 Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
11269 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
11312 Diag(Loc, diag::ext_forward_ref_enum_def)
11314 Diag(Def->getLocation(), diag::note_previous_definition);
11316 unsigned DiagID = diag::ext_forward_ref_enum;
11318 DiagID = diag::ext_ms_forward_ref_enum;
11320 DiagID = diag::err_forward_ref_enum;
11321 Diag(Loc, DiagID);
11360 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier)
11407 Diag(New->getLocation(), diag::err_module_private_specialization)
11431 Diag(Loc, diag::err_type_defined_in_param_type)
11436 Diag(Loc, diag::warn_decl_in_param_list) << Context.getTagDeclType(New);
11644 if (RequireCompleteType(FieldLoc, FieldTy, diag::err_field_incomplete))
11647 return Diag(FieldLoc, diag::err_not_integral_type_bitfield)
11649 return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield)
11671 return Diag(FieldLoc, diag::err_bitfield_has_zero_width) << FieldName;
11675 return Diag(FieldLoc, diag::err_bitfield_has_negative_width)
11677 return Diag(FieldLoc, diag::err_anon_bitfield_has_negative_width)
11687 return Diag(FieldLoc, diag::err_bitfield_width_exceeds_type_size)
11691 return Diag(FieldLoc, diag::err_anon_bitfield_width_exceeds_type_size)
11696 Diag(FieldLoc, diag::warn_bitfield_width_exceeds_type_size)
11700 Diag(FieldLoc, diag::warn_anon_bitfield_width_exceeds_type_size)
11744 Diag(Loc, diag::err_field_with_address_space);
11751 Diag(Loc, diag::err_event_t_struct_field);
11758 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
11759 diag::err_invalid_thread)
11848 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) {
11864 Diag(Loc, diag::err_opencl_bitfields);
11879 Diag(Loc, diag::warn_illegal_constant_array_size);
11884 Diag(Loc, diag::err_typecheck_negative_array_size);
11886 Diag(Loc, diag::err_array_too_large)
11889 Diag(Loc, diag::err_typecheck_field_variable_size);
11896 diag::err_abstract_type_in_decl,
11916 DiagID = diag::err_mutable_reference;
11918 DiagID = diag::err_mutable_const;
11924 Diag(ErrLoc, DiagID);
11942 Diag(Loc, diag::err_duplicate_member) << II;
11943 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
11966 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
11967 diag::ext_union_member_of_reference_type :
11968 diag::err_union_member_of_reference_type)
11992 Diag(Loc, diag::warn_attribute_weak_on_field);
12046 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ?
12047 diag::warn_cxx98_compat_nontrivial_union_or_anon_struct_member :
12048 diag::err_illegal_union_or_anon_struct_member)
12102 Diag(Loc, diag::err_ivar_reference_type);
12108 Diag(Loc, diag::err_typecheck_ivar_variable_size);
12134 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension();
12151 Diag(Loc, diag::err_duplicate_member) << II;
12152 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
12179 Diag(Loc, diag::warn_ivars_in_interface);
12292 Diag(FD->getLocation(), diag::err_field_declared_as_function)
12309 ? diag::ext_flexible_array_union_ms
12311 ? diag::ext_flexible_array_union_gnu
12312 : diag::err_flexible_array_union;
12315 ? diag::ext_flexible_array_empty_aggregate_ms
12317 ? diag::ext_flexible_array_empty_aggregate_gnu
12319 ? diag::err_flexible_array_empty_aggregate
12323 Diag(FD->getLocation(), DiagID) << FD->getDeclName()
12332 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base)
12335 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member)
12345 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor)
12356 diag::err_field_incomplete)) {
12371 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct)
12376 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct)
12385 diag::err_abstract_type_in_decl,
12396 Diag(FD->getLocation(), diag::err_statically_allocated_object)
12418 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag)
12490 Diag(Record->getLocation(), diag::err_multiple_final_overriders)
12492 Diag(M->first->getLocation(),
12493 diag::note_overridden_virtual_function);
12498 Diag(OM->Method->getLocation(), diag::note_final_overrider)
12561 Diag(RecLoc, getLangOpts().CPlusPlus ?
12562 diag::warn_zero_size_struct_union_in_extern_c :
12563 diag::warn_zero_size_struct_union_compat)
12570 Diag(RecLoc, IsEmpty ? diag::ext_empty_struct_union :
12571 diag::ext_no_named_members_in_struct_union)
12612 Diag(ClsFields[i]->getLocation(),
12613 diag::err_duplicate_ivar_declaration);
12614 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
12620 Diag(ClsFields[i]->getLocation(),
12621 diag::err_duplicate_ivar_declaration);
12622 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
12727 Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy;
12730 Diag(IdLoc, diag::err_enumerator_too_large) << EltTy;
12748 Diag(IdLoc, diag::ext_enum_value_not_int)
12806 Diag(IdLoc, diag::err_enumerator_wrapped)
12810 Diag(IdLoc, diag::ext_enumerator_increment_too_large)
12830 Diag(IdLoc, diag::warn_enum_value_overflow);
12834 Diag(IdLoc, diag::ext_enum_value_not_int)
12882 Diag(IdLoc, diag::err_redefinition_of_enumerator) << Id;
12884 Diag(IdLoc, diag::err_redefinition) << Id;
12885 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
12900 Diag(IdLoc, diag::err_member_name_of_class) << Id;
12988 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation()))
13078 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values)
13086 S.Diag((*I)->getLocation(), diag::note_duplicate_element)
13206 Diag(Enum->getLocation(), diag::ext_enum_too_large);
13337 S.Diag(ImportLoc, diag::err_module_import_in_extern_c)
13339 S.Diag(LSD->getLocStart(), diag::note_module_import_in_extern_c);
13352 S.Diag(ImportLoc, diag::err_module_import_not_at_top_level)
13354 S.Diag(cast<Decl>(DC)->getLocStart(),
13355 diag::note_module_import_not_at_top_level)
13375 Diag(ImportLoc, diag::err_module_self_import)