Lines Matching refs:Diag
223 S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II; in recoverFromTypeInKnownDependentBase()
512 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnMSVCUnknownTypeName()
522 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II in ActOnMSVCUnknownTypeName()
659 Diag(IILoc, diag::err_template_missing_args) << TplName; in DiagnoseUnknownTypeName()
661 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
672 Diag(IILoc, diag::err_unknown_typename) << II; in DiagnoseUnknownTypeName()
674 Diag(IILoc, diag::err_typename_nested_not_found) in DiagnoseUnknownTypeName()
681 Diag(SS->getRange().getBegin(), DiagID) in DiagnoseUnknownTypeName()
741 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
747 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
1616 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint; in DiagnoseUnusedDecl()
1630 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel()
1665 Diag(D->getLocation(), diag::warn_ctor_parm_shadows_field) in ActOnPopScope()
1667 Diag(FD->getLocation(), diag::note_previous_declaration); in ActOnPopScope()
1789 Diag(Loc, diag::warn_implicit_decl_requires_sysheader) in LazilyCreateBuiltin()
1795 Diag(Loc, diag::ext_implicit_lib_function_decl) in LazilyCreateBuiltin()
1799 Diag(Loc, diag::note_include_header_or_declare) in LazilyCreateBuiltin()
1909 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef) in isIncompatibleTypedef()
1912 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1922 Diag(New->getLocation(), diag::err_redefinition_different_typedef) in isIncompatibleTypedef()
1925 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1987 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeTypedefNameDecl()
1992 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2082 Diag(New->getLocation(), diag::err_redefinition) in MergeTypedefNameDecl()
2084 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2101 Diag(New->getLocation(), diag::ext_redefinition_of_typedef) in MergeTypedefNameDecl()
2103 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2202 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch) in mergeAlignedAttrs()
2205 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration); in mergeAlignedAttrs()
2218 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition) in mergeAlignedAttrs()
2220 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration) in mergeAlignedAttrs()
2369 unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() == in checkNewAttributesAfterDef() local
2373 S.Diag(VD->getLocation(), Diag) << VD->getDeclName(); in checkNewAttributesAfterDef()
2374 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2408 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition) in checkNewAttributesAfterDef()
2410 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration) in checkNewAttributesAfterDef()
2418 S.Diag(NewAttribute->getLocation(), in checkNewAttributesAfterDef()
2420 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2445 Diag(New->getLocation(), diag::err_different_asm_label); in mergeDeclAttributes()
2446 Diag(OldA->getLocation(), diag::note_previous_declaration); in mergeDeclAttributes()
2451 Diag(New->getLocation(), diag::err_late_asm_label_name) in mergeDeclAttributes()
2462 Diag(NewAbiTagAttr->getLocation(), in mergeDeclAttributes()
2465 Diag(OldAbiTagAttr->getLocation(), diag::note_previous_declaration); in mergeDeclAttributes()
2469 Diag(NewAbiTagAttr->getLocation(), diag::err_abi_tag_on_redeclaration); in mergeDeclAttributes()
2470 Diag(Old->getLocation(), diag::note_previous_declaration); in mergeDeclAttributes()
2526 S.Diag(CDA->getLocation(), in mergeParamDeclAttributes()
2534 S.Diag(FirstVD->getLocation(), in mergeParamDeclAttributes()
2566 S.Diag(NewParam->getLocation(), diag::warn_mismatched_nullability_attr) in mergeParamDeclTypes()
2575 S.Diag(OldParam->getLocation(), diag::note_previous_declaration); in mergeParamDeclTypes()
2705 S.Diag(New->getLocation(), diag::err_using_decl_conflict_reverse); in checkUsingShadowRedecl()
2706 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target); in checkUsingShadowRedecl()
2707 S.Diag(OldS->getUsingDecl()->getLocation(), diag::note_using_decl) << 0; in checkUsingShadowRedecl()
2746 Diag(New->getLocation(), diag::err_using_decl_friend); in MergeFunctionDecl()
2747 Diag(Shadow->getTargetDecl()->getLocation(), in MergeFunctionDecl()
2749 Diag(Shadow->getUsingDecl()->getLocation(), in MergeFunctionDecl()
2759 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeFunctionDecl()
2761 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2785 Diag(New->getLocation(), diag::ext_static_non_static) << New; in MergeFunctionDecl()
2786 Diag(OldLocation, PrevDiag); in MergeFunctionDecl()
2788 Diag(New->getLocation(), diag::err_static_non_static) << New; in MergeFunctionDecl()
2789 Diag(OldLocation, PrevDiag); in MergeFunctionDecl()
2796 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration) in MergeFunctionDecl()
2798 Diag(Old->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2837 Diag(New->getLocation(), diag::err_cconv_change) in MergeFunctionDecl()
2844 Diag(First->getLocation(), diag::note_previous_declaration); in MergeFunctionDecl()
2859 Diag(New->getLocation(), diag::err_regparm_mismatch) in MergeFunctionDecl()
2862 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2873 Diag(New->getLocation(), diag::err_returns_retained_mismatch); in MergeFunctionDecl()
2874 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2911 Diag(New->getLocation(), diag::err_different_pass_object_size_params) in MergeFunctionDecl()
2913 Diag(OldLocation, PrevDiag) << Old << Old->getType(); in MergeFunctionDecl()
2945 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type) in MergeFunctionDecl()
2948 Diag(New->getLocation(), diag::err_ovl_diff_return_type) in MergeFunctionDecl()
2950 Diag(OldLocation, PrevDiag) << Old << Old->getType() in MergeFunctionDecl()
2996 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member); in MergeFunctionDecl()
2997 Diag(OldLocation, PrevDiag) << Old << Old->getType(); in MergeFunctionDecl()
3016 Diag(New->getLocation(), NewDiag); in MergeFunctionDecl()
3018 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation) in MergeFunctionDecl()
3021 Diag(OldLocation, PrevDiag) << Old << Old->getType(); in MergeFunctionDecl()
3033 Diag(NewMethod->getLocation(), in MergeFunctionDecl()
3039 Diag(NewMethod->getLocation(), in MergeFunctionDecl()
3052 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl); in MergeFunctionDecl()
3053 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
3063 Diag(CDA->getLocation(), in MergeFunctionDecl()
3065 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
3094 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New; in MergeFunctionDecl()
3095 Diag(OldLocation, PrevDiag); in MergeFunctionDecl()
3097 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeFunctionDecl()
3098 Diag(OldLocation, PrevDiag); in MergeFunctionDecl()
3200 Diag(Warnings[Warn].NewParm->getLocation(), in MergeFunctionDecl()
3205 Diag(Warnings[Warn].OldParm->getLocation(), in MergeFunctionDecl()
3228 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New; in MergeFunctionDecl()
3229 Diag(OldLocation, diag::note_previous_builtin_declaration) in MergeFunctionDecl()
3249 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName(); in MergeFunctionDecl()
3250 Diag(OldLocation, PrevDiag) << Old << Old->getType(); in MergeFunctionDecl()
3324 S.Diag(New->getLocation(), New->isThisDeclarationADefinition() in diagnoseVarDeclTypeMismatch()
3333 S.Diag(OldLocation, PrevDiag); in diagnoseVarDeclTypeMismatch()
3500 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeVarDecl()
3502 Diag(Previous.getRepresentativeDecl()->getLocation(), in MergeVarDecl()
3519 Diag(New->getLocation(), diag::err_duplicate_member) in MergeVarDecl()
3521 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeVarDecl()
3531 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName(); in MergeVarDecl()
3532 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3539 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration) in MergeVarDecl()
3541 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3568 Diag(New->getLocation(), diag::ext_static_non_static) in MergeVarDecl()
3570 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3572 Diag(New->getLocation(), diag::err_static_non_static) in MergeVarDecl()
3574 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3592 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName(); in MergeVarDecl()
3593 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3600 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName(); in MergeVarDecl()
3601 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3606 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName(); in MergeVarDecl()
3607 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3619 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName(); in MergeVarDecl()
3620 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3629 Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New; in MergeVarDecl()
3630 Diag(Def->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3643 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName(); in MergeVarDecl()
3644 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3646 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName(); in MergeVarDecl()
3647 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3653 Diag(New->getLocation(), diag::err_thread_thread_different_kind) in MergeVarDecl()
3655 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3676 Diag(New->getLocation(), in MergeVarDecl()
3679 Diag(New->getLocation(), diag::err_redefinition) << New; in MergeVarDecl()
3680 Diag(Def->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3687 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeVarDecl()
3688 Diag(OldLocation, PrevDiag); in MergeVarDecl()
3786 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3794 Diag(tagLoc, diag::note_typedef_changes_linkage) in setTagNameForLinkagePurposes()
3860 Diag(DS.getRestrictSpecLoc(), in ParsedFreeStandingDeclSpec()
3866 Diag(DS.getInlineSpecLoc(), diag::err_inline_non_function) in ParsedFreeStandingDeclSpec()
3873 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_tag) in ParsedFreeStandingDeclSpec()
3876 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_no_declarators); in ParsedFreeStandingDeclSpec()
3885 Diag(DS.getConceptSpecLoc(), diag::err_concept_wrong_decl_kind); in ParsedFreeStandingDeclSpec()
3913 Diag(SS.getBeginLoc(), diag::err_standalone_class_nested_name_specifier) in ParsedFreeStandingDeclSpec()
3971 Diag(DS.getLocStart(), diag::ext_ms_anonymous_record) in ParsedFreeStandingDeclSpec()
3995 Diag(DS.getLocStart(), diag::ext_typedef_without_a_name) in ParsedFreeStandingDeclSpec()
4003 Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class) in ParsedFreeStandingDeclSpec()
4020 Diag(DS.getLocStart(), diag::ext_no_declarators) << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
4043 Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_nonmember); in ParsedFreeStandingDeclSpec()
4045 Diag(DS.getStorageClassSpecLoc(), DiagID) in ParsedFreeStandingDeclSpec()
4050 Diag(DS.getThreadStorageClassSpecLoc(), DiagID) in ParsedFreeStandingDeclSpec()
4054 Diag(DS.getConstSpecLoc(), DiagID) << "const"; in ParsedFreeStandingDeclSpec()
4056 Diag(DS.getConstSpecLoc(), DiagID) << "volatile"; in ParsedFreeStandingDeclSpec()
4059 Diag(DS.getAtomicSpecLoc(), DiagID) << "_Atomic"; in ParsedFreeStandingDeclSpec()
4061 Diag(DS.getUnalignedSpecLoc(), DiagID) << "__unaligned"; in ParsedFreeStandingDeclSpec()
4076 Diag(attrs->getLoc(), diag::warn_declspec_attribute_ignored) in ParsedFreeStandingDeclSpec()
4105 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl) in CheckAnonMemberRedeclaration()
4107 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration()
4231 S.Diag(DefaultInitLoc, diag::err_multiple_mem_union_initialization); in checkDuplicateDefaultInit()
4232 S.Diag(findDefaultInitializer(Parent), diag::note_previous_initializer) << 0; in checkDuplicateDefaultInit()
4255 Diag(Record->getLocation(), diag::ext_anonymous_union); in BuildAnonymousStructOrUnion()
4257 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct); in BuildAnonymousStructOrUnion()
4259 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct); in BuildAnonymousStructOrUnion()
4275 Diag(Record->getLocation(), diag::err_anonymous_union_not_static) in BuildAnonymousStructOrUnion()
4287 Diag(DS.getStorageClassSpecLoc(), in BuildAnonymousStructOrUnion()
4301 Diag(DS.getConstSpecLoc(), diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4305 Diag(DS.getVolatileSpecLoc(), in BuildAnonymousStructOrUnion()
4310 Diag(DS.getRestrictSpecLoc(), in BuildAnonymousStructOrUnion()
4315 Diag(DS.getAtomicSpecLoc(), in BuildAnonymousStructOrUnion()
4320 Diag(DS.getUnalignedSpecLoc(), in BuildAnonymousStructOrUnion()
4339 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member) in BuildAnonymousStructOrUnion()
4363 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4367 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4375 Diag(MemRecord->getLocation(), in BuildAnonymousStructOrUnion()
4397 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4400 Diag(Mem->getLocation(), DK) << Record->isUnion(); in BuildAnonymousStructOrUnion()
4416 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member) in BuildAnonymousStructOrUnion()
4446 Diag(Record->getLocation(), diag::err_mutable_nonmember); in BuildAnonymousStructOrUnion()
4814 Diag(NameInfo.getLoc(), diag::err_member_name_of_class) << Name; in DiagnoseClassNameShadow()
4852 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification in diagnoseQualifiedDeclaration()
4857 Diag(Loc, diag::warn_namespace_member_extra_qualification) << Name; in diagnoseQualifiedDeclaration()
4866 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4869 Diag(Loc, diag::err_invalid_declarator_global_scope) in diagnoseQualifiedDeclaration()
4872 Diag(Loc, diag::err_invalid_declarator_in_function) in diagnoseQualifiedDeclaration()
4875 Diag(Loc, diag::err_invalid_declarator_in_block) in diagnoseQualifiedDeclaration()
4878 Diag(Loc, diag::err_invalid_declarator_scope) in diagnoseQualifiedDeclaration()
4886 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4910 Diag(Loc, diag::err_decltype_in_declarator) in diagnoseQualifiedDeclaration()
4926 Diag(D.getDeclSpec().getLocStart(), in HandleDeclarator()
4954 Diag(D.getIdentifierLoc(), in HandleDeclarator()
4968 Diag(D.getIdentifierLoc(), in HandleDeclarator()
5099 Diag(D.getDeclSpec().getConceptSpecLoc(), in HandleDeclarator()
5105 Diag(D.getIdentifierLoc(), in HandleDeclarator()
5116 Diag(D.getIdentifierLoc(), diag::err_template_typedef); in HandleDeclarator()
5296 Diag(DS.getVirtualSpecLoc(), in DiagnoseFunctionSpecifiers()
5300 Diag(DS.getExplicitSpecLoc(), in DiagnoseFunctionSpecifiers()
5304 Diag(DS.getNoreturnSpecLoc(), in DiagnoseFunctionSpecifiers()
5313 Diag(D.getIdentifierLoc(), diag::err_qualified_typedef_declarator) in ActOnTypedefDeclarator()
5324 Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function) in ActOnTypedefDeclarator()
5327 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnTypedefDeclarator()
5330 Diag(D.getDeclSpec().getConceptSpecLoc(), in ActOnTypedefDeclarator()
5334 Diag(D.getName().StartLocation, diag::err_typedef_not_identifier) in ActOnTypedefDeclarator()
5372 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5376 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5378 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5380 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5383 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5505 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var) in inferObjCARCLifetime()
5522 Diag(var->getLocation(), diag::err_arc_thread_ownership) in inferObjCARCLifetime()
5539 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static); in checkAttributesAfterMerging()
5545 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static); in checkAttributesAfterMerging()
5556 S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD << 0; in checkAttributesAfterMerging()
5566 S.Diag(Attr->getLocation(), in checkAttributesAfterMerging()
5577 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern) in checkAttributesAfterMerging()
5587 S.Diag(ND.getLocation(), in checkAttributesAfterMerging()
5646 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
5649 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5677 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5680 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5686 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5689 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5690 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute); in checkDLLAttributeRedeclaration()
5698 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5860 Diag(D.getIdentifierLoc(), in ActOnVariableDeclarator()
5886 Diag(D.getIdentifierLoc(), diag::err_opencl_function_pointer_variable); in ActOnVariableDeclarator()
5897 Diag(D.getIdentifierLoc(), diag::err_opencl_half_declaration) << R; in ActOnVariableDeclarator()
5906 Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember); in ActOnVariableDeclarator()
5917 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
5925 Diag(D.getIdentifierLoc(), diag::err_bad_variable_name) in ActOnVariableDeclarator()
5937 Diag(D.getIdentifierLoc(), diag::err_typecheck_sclass_fscope); in ActOnVariableDeclarator()
5948 Diag(D.getIdentifierLoc(), diag::err_wrong_sampler_addressspace); in ActOnVariableDeclarator()
5957 Diag(D.getLocStart(), diag::err_event_t_global_var); in ActOnVariableDeclarator()
5962 Diag(D.getLocStart(), diag::err_event_t_addr_space_qual); in ActOnVariableDeclarator()
5994 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6006 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6018 Diag(D.getIdentifierLoc(), in ActOnVariableDeclarator()
6025 Diag(D.getIdentifierLoc(), in ActOnVariableDeclarator()
6031 Diag(D.getIdentifierLoc(), in ActOnVariableDeclarator()
6053 Diag(TemplateParams->getTemplateLoc(), in ActOnVariableDeclarator()
6074 Diag(D.getIdentifierLoc(), in ActOnVariableDeclarator()
6147 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
6154 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnVariableDeclarator()
6164 Diag(D.getDeclSpec().getConceptSpecLoc(), in ActOnVariableDeclarator()
6174 Diag(D.getIdentifierLoc(), diag::err_variable_concept_bool_decl); in ActOnVariableDeclarator()
6183 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnVariableDeclarator()
6187 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnVariableDeclarator()
6215 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
6229 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
6248 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6256 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
6261 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
6265 Diag(NewVD->getLocation(), diag::err_module_private_local) in ActOnVariableDeclarator()
6281 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
6313 Diag(E->getExprLoc(), diag::warn_asm_label_on_auto_decl) << Label; in ActOnVariableDeclarator()
6319 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
6333 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
6337 Diag(E->getExprLoc(), diag::err_asm_invalid_global_var_reg) << Label; in ActOnVariableDeclarator()
6339 Diag(E->getExprLoc(), diag::err_asm_register_size_mismatch) << Label; in ActOnVariableDeclarator()
6343 Diag(D.getLocStart(), diag::err_asm_bad_register_type); in ActOnVariableDeclarator()
6358 Diag(NewVD->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnVariableDeclarator()
6398 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line) in ActOnVariableDeclarator()
6405 Diag(D.getIdentifierLoc(), diag::err_no_member) in ActOnVariableDeclarator()
6423 Diag(NewVD->getLocation(), diag::err_concept_specialized) in ActOnVariableDeclarator()
6427 Diag(VarTmpl->getLocation(), diag::note_previous_declaration); in ActOnVariableDeclarator()
6487 Diag(D.getLocStart(), diag::err_main_global_variable); in ActOnVariableDeclarator()
6492 Diag(D.getLocStart(), diag::warn_main_redefined); in ActOnVariableDeclarator()
6601 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC; in CheckShadow()
6602 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration); in CheckShadow()
6632 Diag(Loc, diag::warn_modifying_shadowing_decl) << D << OldDC; in CheckShadowingDeclModification()
6633 Diag(D->getLocation(), diag::note_var_declared_here) << D; in CheckShadowingDeclModification()
6634 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration); in CheckShadowingDeclModification()
6710 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6712 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6773 Diag(NewVD->getLocation(), diag::err_statically_allocated_object) in CheckVariableDeclarationType()
6785 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl); in CheckVariableDeclarationType()
6795 Diag(NewVD->getLocation(), diag::err_static_function_scope); in CheckVariableDeclarationType()
6803 Diag(NewVD->getLocation(), diag::err_opencl_block_storage_type); in CheckVariableDeclarationType()
6811 Diag(NewVD->getLocation(), diag::err_opencl_invalid_block_declaration) in CheckVariableDeclarationType()
6817 Diag(NewVD->getLocation(), diag::err_opencl_extern_block_declaration); in CheckVariableDeclarationType()
6827 Diag(NewVD->getLocation(), diag::err_opencl_block_proto_variadic) in CheckVariableDeclarationType()
6846 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6849 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6856 Diag(NewVD->getLocation(), diag::err_opencl_function_variable) in CheckVariableDeclarationType()
6868 Diag(NewVD->getLocation(), diag::err_opencl_function_variable) in CheckVariableDeclarationType()
6871 Diag(NewVD->getLocation(), diag::err_opencl_function_variable) in CheckVariableDeclarationType()
6883 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local); in CheckVariableDeclarationType()
6886 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local); in CheckVariableDeclarationType()
6909 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope) in CheckVariableDeclarationType()
6912 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage) in CheckVariableDeclarationType()
6915 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage) in CheckVariableDeclarationType()
6923 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckVariableDeclarationType()
6925 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage); in CheckVariableDeclarationType()
6930 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size); in CheckVariableDeclarationType()
6939 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type) in CheckVariableDeclarationType()
6947 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal); in CheckVariableDeclarationType()
6953 Diag(NewVD->getLocation(), diag::err_block_on_vm); in CheckVariableDeclarationType()
7045 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName(); in ReportOverrides()
7055 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function); in ReportOverrides()
7265 SemaRef.Diag(NewFD->getLocation(), DiagMsg) in DiagnoseInvalidRedeclaration()
7285 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match in DiagnoseInvalidRedeclaration()
7290 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match) in DiagnoseInvalidRedeclaration()
7293 SemaRef.Diag(FD->getLocation(), in DiagnoseInvalidRedeclaration()
7306 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(), in getFunctionStorageClass()
7322 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(), in getFunctionStorageClass()
7414 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member); in CreateNewFunctionDecl()
7428 SemaRef.Diag(D.getIdentifierLoc(), in CreateNewFunctionDecl()
7447 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type) in CreateNewFunctionDecl()
7533 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param); in checkIsValidOpenCLKernelParameter()
7541 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param); in checkIsValidOpenCLKernelParameter()
7555 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7626 S.Diag(Param->getLocation(), in checkIsValidOpenCLKernelParameter()
7631 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7634 S.Diag(PD->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7644 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7648 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here) in checkIsValidOpenCLKernelParameter()
7672 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnFunctionDeclarator()
7734 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_virtual_in_union); in ActOnFunctionDeclarator()
7764 Diag(NewFD->getLocation(), diag::err_destructor_template); in ActOnFunctionDeclarator()
7812 Diag(D.getIdentifierLoc(), diag::err_template_spec_decl_friend) in ActOnFunctionDeclarator()
7840 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
7844 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
7850 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
7860 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual); in ActOnFunctionDeclarator()
7887 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnFunctionDeclarator()
7900 Diag(D.getDeclSpec().getExplicitSpecLoc(), in ActOnFunctionDeclarator()
7907 Diag(D.getDeclSpec().getExplicitSpecLoc(), in ActOnFunctionDeclarator()
7922 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor); in ActOnFunctionDeclarator()
7933 Diag(D.getDeclSpec().getConceptSpecLoc(), in ActOnFunctionDeclarator()
7946 Diag(NewFD->getLocation(), diag::err_function_concept_exception_spec) in ActOnFunctionDeclarator()
7957 Diag(D.getIdentifierLoc(), diag::err_function_concept_bool_ret); in ActOnFunctionDeclarator()
7966 Diag(NewFD->getLocation(), diag::err_function_concept_with_params); in ActOnFunctionDeclarator()
7977 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnFunctionDeclarator()
7984 Diag(D.getDeclSpec().getFriendSpecLoc(), in ActOnFunctionDeclarator()
7991 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnFunctionDeclarator()
8001 Diag(D.getDeclSpec().getConceptSpecLoc(), in ActOnFunctionDeclarator()
8013 Diag(ModulePrivateLoc, diag::err_module_private_specialization) in ActOnFunctionDeclarator()
8066 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnFunctionDeclarator()
8103 Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnFunctionDeclarator()
8173 Diag(NewFD->getLocation(), diag::err_vm_func_decl); in ActOnFunctionDeclarator()
8204 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8240 Diag(NewFD->getLocation(), DiagID) in ActOnFunctionDeclarator()
8255 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnFunctionDeclarator()
8276 Diag(D.getIdentifierLoc(), diag::err_function_template_partial_spec) in ActOnFunctionDeclarator()
8318 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in ActOnFunctionDeclarator()
8335 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8342 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8476 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration) in ActOnFunctionDeclarator()
8488 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8538 Diag(NewFD->getLocation(), diag::err_config_scalar_return); in ActOnFunctionDeclarator()
8551 Diag(NewFD->getLocation(), diag::err_variadic_device_fn); in ActOnFunctionDeclarator()
8567 Diag(D.getIdentifierLoc(), diag::err_static_kernel); in ActOnFunctionDeclarator()
8574 Diag(D.getIdentifierLoc(), diag::err_expected_kernel_void_return_type) in ActOnFunctionDeclarator()
8593 Diag(Param->getTypeSpecStartLoc(), diag::err_reference_pipe_type ); in ActOnFunctionDeclarator()
8681 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8689 Diag(OverloadedDecl->getLocation(), in CheckFunctionDeclaration()
8709 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8711 Diag(Previous.getFoundDecl()->getLocation(), in CheckFunctionDeclaration()
8755 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const) in CheckFunctionDeclaration()
8827 Diag(NewFD->getLocation(), diag::err_destructor_name); in CheckFunctionDeclaration()
8894 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete) in CheckFunctionDeclaration()
8898 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R; in CheckFunctionDeclaration()
8913 Diag(DS.getStorageClassSpecLoc(), getLangOpts().CPlusPlus in CheckMain()
8917 Diag(DS.getInlineSpecLoc(), diag::err_inline_main) in CheckMain()
8922 Diag(NoreturnLoc, diag::ext_noreturn_main); in CheckMain()
8923 Diag(NoreturnLoc, diag::note_main_remove_noreturn) in CheckMain()
8927 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_main) in CheckMain()
8933 Diag(FD->getLocation(), diag::err_opencl_no_main) in CheckMain()
8952 Diag(FD->getTypeSpecStartLoc(), diag::ext_main_returns_nonint); in CheckMain()
8955 Diag(RTRange.getBegin(), diag::note_main_change_return_type) in CheckMain()
8969 Diag(FD->getTypeSpecStartLoc(), diag::err_main_returns_nonint) in CheckMain()
8986 Diag(FD->getLocation(), diag::ext_variadic_main); in CheckMain()
8998 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams; in CheckMain()
9035 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i]; in CheckMain()
9042 Diag(FD->getLocation(), diag::warn_main_one_arg); in CheckMain()
9046 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMain()
9066 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMSVCRTEntryPoint()
9083 Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant) in CheckForConstantInitializer()
9442 Diag(Init->getLocStart(), IsInitCapture in deduceVarTypeFromInitializer()
9450 Diag(DeduceInits[1]->getLocStart(), in deduceVarTypeFromInitializer()
9459 Diag(Init->getLocStart(), IsInitCapture in deduceVarTypeFromInitializer()
9483 Diag(Range.getBegin(), in deduceVarTypeFromInitializer()
9490 Diag(Range.getBegin(), diag::err_init_capture_deduction_failure) in deduceVarTypeFromInitializer()
9505 Diag(Loc, diag::warn_auto_var_is_id) << Name << Range; in deduceVarTypeFromInitializer()
9525 Diag(Method->getLocation(), diag::err_member_function_initialization) in AddInitializerToDecl()
9534 Diag(RealDecl->getLocation(), diag::err_illegal_initializer); in AddInitializerToDecl()
9582 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition); in AddInitializerToDecl()
9589 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init); in AddInitializerToDecl()
9625 Diag(VDecl->getLocation(), diag::err_redefinition) in AddInitializerToDecl()
9627 Diag(Def->getLocation(), diag::note_previous_definition); in AddInitializerToDecl()
9647 Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization) in AddInitializerToDecl()
9649 Diag(VDecl->getCanonicalDecl()->getInit()->getExprLoc(), in AddInitializerToDecl()
9667 Diag(VDecl->getLocation(), diag::err_local_cant_init); in AddInitializerToDecl()
9807 Diag(Culprit->getExprLoc(), in AddInitializerToDecl()
9844 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const) in AddInitializerToDecl()
9855 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile); in AddInitializerToDecl()
9863 Diag(Loc, diag::ext_in_class_initializer_non_constant) in AddInitializerToDecl()
9868 Diag(Loc, diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9878 Diag(VDecl->getLocation(), in AddInitializerToDecl()
9881 Diag(VDecl->getLocStart(), in AddInitializerToDecl()
9885 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type) in AddInitializerToDecl()
9889 Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9897 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type) in AddInitializerToDecl()
9903 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type) in AddInitializerToDecl()
9913 Diag(VDecl->getLocation(), diag::warn_extern_init); in AddInitializerToDecl()
9996 Diag(Var->getLocation(), diag::err_auto_var_requires_init) in ActOnUninitializedDecl()
10013 Diag(Var->getLocation(), in ActOnUninitializedDecl()
10020 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl); in ActOnUninitializedDecl()
10031 Diag(Var->getLocation(), diag::err_var_concept_not_initialized); in ActOnUninitializedDecl()
10042 Diag(Var->getLocation(), diag::err_opencl_constant_no_init); in ActOnUninitializedDecl()
10078 Diag(Var->getLocation(), diag::warn_private_extern); in ActOnUninitializedDecl()
10079 Diag(Var->getLocation(), diag::note_private_extern); in ActOnUninitializedDecl()
10122 Diag(Var->getLocation(), in ActOnUninitializedDecl()
10131 Diag(Var->getLocation(), diag::err_reference_var_requires_init) in ActOnUninitializedDecl()
10226 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var); in ActOnCXXForRangeDecl()
10255 Diag(VD->getOuterLocStart(), diag::err_for_range_storage_class) in ActOnCXXForRangeDecl()
10300 Diag(var->getLocation(), diag::err_opencl_invalid_block_declaration) in CheckCompleteVariableDeclaration()
10340 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var; in CheckCompleteVariableDeclaration()
10349 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor); in CheckCompleteVariableDeclaration()
10351 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
10359 Diag(Culprit->getExprLoc(), diag::err_thread_dynamic_init) in CheckCompleteVariableDeclaration()
10362 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
10442 Diag(var->getLocation(), diag::warn_global_constructor) in CheckCompleteVariableDeclaration()
10457 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
10460 Diag(Notes[I].first, Notes[I].second); in CheckCompleteVariableDeclaration()
10507 Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum) in FinalizeDeclaration()
10529 Diag(VD->getLocation(), diag::err_device_static_local_var); in FinalizeDeclaration()
10565 Diag(VD->getLocation(), VD->hasAttr<CUDASharedAttr>() in FinalizeDeclaration()
10589 Diag(VD->getLocation(), in FinalizeDeclaration()
10593 Diag(IA->getLocation(), diag::note_attribute); in FinalizeDeclaration()
10609 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD in FinalizeDeclaration()
10617 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr; in FinalizeDeclaration()
10646 Diag(I->getRange().getBegin(), in FinalizeDeclaration()
10652 Diag(I->getRange().getBegin(), in FinalizeDeclaration()
10724 Diag(D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(), in BuildDeclaratorGroup()
10805 Diag(DS.getStorageClassSpecLoc(), in ActOnParamDeclarator()
10811 Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_thread) in ActOnParamDeclarator()
10814 Diag(DS.getInlineSpecLoc(), diag::err_inline_non_function) in ActOnParamDeclarator()
10817 Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnParamDeclarator()
10820 Diag(DS.getConceptSpecLoc(), diag::err_concept_wrong_decl_kind); in ActOnParamDeclarator()
10834 Diag(D.getIdentifierLoc(), diag::err_qualified_param_declarator) in ActOnParamDeclarator()
10845 Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name) in ActOnParamDeclarator()
10864 Diag(D.getIdentifierLoc(), diag::err_param_redefinition) << II; in ActOnParamDeclarator()
10865 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnParamDeclarator()
10900 Diag(New->getLocation(), diag::err_module_private_local) in ActOnParamDeclarator()
10906 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnParamDeclarator()
10935 Diag(Parameter->getLocation(), diag::warn_unused_parameter) in DiagnoseUnusedParameters()
10951 Diag(D->getLocation(), diag::warn_return_value_size) in DiagnoseSizeOfParametersAndReturnValue()
10963 Diag(Parameter->getLocation(), diag::warn_parameter_size) in DiagnoseSizeOfParametersAndReturnValue()
11012 Diag(NameLoc, in CheckParameter()
11027 Diag(NameLoc, diag::err_arg_with_address_space); in CheckParameter()
11048 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared) in ActOnFinishKNRParamDeclarations()
11175 Diag(FD->getLocation(), diag::err_redefinition_extern_inline) in CheckForFunctionRedefinition()
11178 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName(); in CheckForFunctionRedefinition()
11180 Diag(Definition->getLocation(), diag::note_previous_definition); in CheckForFunctionRedefinition()
11278 Diag(FD->getLocation(), diag::err_builtin_definition) << FD; in ActOnStartOfFunctionDef()
11352 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition); in ActOnStartOfFunctionDef()
11362 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container); in ActOnStartOfFunctionDef()
11458 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto) in ActOnFinishFunctionBody()
11509 Diag(FD->getLocation(), diag::ext_pure_function_definition); in ActOnFinishFunctionBody()
11539 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD; in ActOnFinishFunctionBody()
11548 Diag(PossibleZeroParamPrototype->getLocation(), in ActOnFinishFunctionBody()
11594 Diag(MD->getLocEnd(), diag::warn_objc_missing_super_call) in ActOnFinishFunctionBody()
11618 Diag(MD->getLocation(), in ActOnFinishFunctionBody()
11620 Diag(InitMethod->getLocation(), in ActOnFinishFunctionBody()
11628 Diag(MD->getLocation(), in ActOnFinishFunctionBody()
11683 Diag(S->getLocStart(), diag::err_non_asm_stmt_in_naked_function); in ActOnFinishFunctionBody()
11684 Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in ActOnFinishFunctionBody()
11736 Diag(Loc, diag::warn_use_out_of_scope_declaration) << ExternCPrev; in ImplicitlyDefineFunction()
11737 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration); in ImplicitlyDefineFunction()
11749 Diag(Loc, diag_id) << &II; in ImplicitlyDefineFunction()
11957 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
12001 Diag(UnderlyingLoc, diag::err_enum_invalid_underlying) << T; in CheckEnumUnderlyingType()
12013 Diag(EnumLoc, diag::err_enum_redeclare_scoped_mismatch) in CheckEnumRedeclaration()
12015 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
12025 Diag(EnumLoc, diag::err_enum_redeclare_type_mismatch) in CheckEnumRedeclaration()
12027 Diag(Prev->getLocation(), diag::note_previous_declaration) in CheckEnumRedeclaration()
12036 Diag(EnumLoc, diag::err_enum_redeclare_fixed_mismatch) in CheckEnumRedeclaration()
12038 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
12103 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
12122 Diag(NewTagLoc, diag::warn_struct_class_previous_tag_mismatch) in isAcceptableTagRedeclaration()
12126 Diag(I->getInnerLocStart(), diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
12144 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
12147 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
12151 Diag(NewTagLoc, diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
12292 Diag(KWLoc, diag::err_enum_template); in ActOnTag()
12315 Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams) in ActOnTag()
12386 Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec) in ActOnTag()
12416 Diag(NameLoc, diag::err_not_tag_in_scope) in ActOnTag()
12486 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace) in ActOnTag()
12634 Diag(KWLoc, diag::err_using_decl_conflict_reverse); in ActOnTag()
12635 Diag(Shadow->getTargetDecl()->getLocation(), in ActOnTag()
12637 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) in ActOnTag()
12661 Diag(KWLoc, diag::err_use_with_wrong_tag) in ActOnTag()
12666 Diag(KWLoc, diag::err_use_with_wrong_tag) << Name; in ActOnTag()
12667 Diag(PrevTagDecl->getLocation(), diag::note_previous_use); in ActOnTag()
12686 Diag(ScopedEnumKWLoc, diag::err_enum_class_reference) in ActOnTag()
12713 Diag(NameLoc, diag::ext_member_redeclared); in ActOnTag()
12714 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration); in ActOnTag()
12782 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name; in ActOnTag()
12784 Diag(NameLoc, diag::err_redefinition) << Name; in ActOnTag()
12785 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
12798 Diag(NameLoc, diag::err_nested_redefinition) << Name; in ActOnTag()
12799 Diag(PrevTagDecl->getLocation(), in ActOnTag()
12846 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind; in ActOnTag()
12847 Diag(PrevDecl->getLocation(), diag::note_declared_at); in ActOnTag()
12861 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind; in ActOnTag()
12862 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
12870 Diag(NameLoc, diag::err_tag_definition_of_typedef) in ActOnTag()
12872 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
12879 Diag(NameLoc, diag::err_redefinition_different_kind) << Name; in ActOnTag()
12880 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnTag()
12923 Diag(Loc, diag::ext_forward_ref_enum_def) in ActOnTag()
12925 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
12932 Diag(Loc, DiagID); in ActOnTag()
12970 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier) in ActOnTag()
13015 Diag(New->getLocation(), diag::err_module_private_specialization) in ActOnTag()
13039 Diag(Loc, diag::err_type_defined_in_param_type) in ActOnTag()
13044 Diag(Loc, diag::warn_decl_in_param_list) << Context.getTagDeclType(New); in ActOnTag()
13253 return Diag(FieldLoc, diag::err_not_integral_type_bitfield) in VerifyBitField()
13255 return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield) in VerifyBitField()
13277 return Diag(FieldLoc, diag::err_bitfield_has_zero_width) << FieldName; in VerifyBitField()
13281 return Diag(FieldLoc, diag::err_bitfield_has_negative_width) in VerifyBitField()
13283 return Diag(FieldLoc, diag::err_anon_bitfield_has_negative_width) in VerifyBitField()
13303 return Diag(FieldLoc, diag::err_bitfield_width_exceeds_type_width) in VerifyBitField()
13307 return Diag(FieldLoc, diag::err_anon_bitfield_width_exceeds_type_width) in VerifyBitField()
13317 Diag(FieldLoc, diag::warn_bitfield_width_exceeds_type_width) in VerifyBitField()
13321 Diag(FieldLoc, diag::warn_anon_bitfield_width_exceeds_type_width) in VerifyBitField()
13365 Diag(Loc, diag::err_field_with_address_space); in HandleField()
13373 Diag(Loc, diag::err_opencl_type_struct_or_union_field) << T; in HandleField()
13380 Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function) in HandleField()
13383 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in HandleField()
13489 Diag(Loc, diag::err_opencl_bitfields); in CheckFieldDecl()
13504 Diag(Loc, diag::warn_illegal_constant_array_size); in CheckFieldDecl()
13509 Diag(Loc, diag::err_typecheck_negative_array_size); in CheckFieldDecl()
13511 Diag(Loc, diag::err_array_too_large) in CheckFieldDecl()
13514 Diag(Loc, diag::err_typecheck_field_variable_size); in CheckFieldDecl()
13552 Diag(ErrLoc, DiagID); in CheckFieldDecl()
13572 Diag(Loc, diag::err_duplicate_member) << II; in CheckFieldDecl()
13573 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckFieldDecl()
13596 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in CheckFieldDecl()
13622 Diag(Loc, diag::warn_attribute_weak_on_field); in CheckFieldDecl()
13675 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ? in CheckNontrivialField()
13731 Diag(Loc, diag::err_ivar_reference_type); in ActOnIvar()
13737 Diag(Loc, diag::err_typecheck_ivar_variable_size); in ActOnIvar()
13763 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar()
13780 Diag(Loc, diag::err_duplicate_member) << II; in ActOnIvar()
13781 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnIvar()
13808 Diag(Loc, diag::warn_ivars_in_interface); in ActOnIvar()
13921 Diag(FD->getLocation(), diag::err_field_declared_as_function) in ActOnFields()
13950 Diag(FD->getLocation(), DiagID) << FD->getDeclName() in ActOnFields()
13959 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base) in ActOnFields()
13962 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member) in ActOnFields()
13972 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor) in ActOnFields()
13997 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct) in ActOnFields()
14002 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct) in ActOnFields()
14020 Diag(FD->getLocation(), diag::err_statically_allocated_object) in ActOnFields()
14041 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag) in ActOnFields()
14115 Diag(Record->getLocation(), diag::err_multiple_final_overriders) in ActOnFields()
14117 Diag(M->first->getLocation(), in ActOnFields()
14123 Diag(OM->Method->getLocation(), diag::note_final_overrider) in ActOnFields()
14186 Diag(RecLoc, getLangOpts().CPlusPlus ? in ActOnFields()
14195 Diag(RecLoc, IsEmpty ? diag::ext_empty_struct_union : in ActOnFields()
14237 Diag(ClsFields[i]->getLocation(), in ActOnFields()
14239 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
14245 Diag(ClsFields[i]->getLocation(), in ActOnFields()
14247 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
14352 Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy; in CheckEnumConstant()
14355 Diag(IdLoc, diag::err_enumerator_too_large) << EltTy; in CheckEnumConstant()
14376 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
14434 Diag(IdLoc, diag::err_enumerator_wrapped) in CheckEnumConstant()
14438 Diag(IdLoc, diag::ext_enumerator_increment_too_large) in CheckEnumConstant()
14458 Diag(IdLoc, diag::warn_enum_value_overflow); in CheckEnumConstant()
14462 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
14550 Diag(IdLoc, diag::err_redefinition_of_enumerator) << Id; in ActOnEnumConstant()
14552 Diag(IdLoc, diag::err_redefinition) << Id; in ActOnEnumConstant()
14553 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnEnumConstant()
14731 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values) in CheckForDuplicateEnumValues()
14739 S.Diag((*I)->getLocation(), diag::note_duplicate_element) in CheckForDuplicateEnumValues()
14886 Diag(Enum->getLocation(), diag::ext_enum_too_large); in ActOnEnumBody()
15001 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range) in ActOnEnumBody()
15044 S.Diag(ImportLoc, (FromInclude && S.isModuleVisible(M)) in checkModuleImportContext()
15048 S.Diag(cast<Decl>(DC)->getLocStart(), in checkModuleImportContext()
15051 S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) in checkModuleImportContext()
15053 S.Diag(ExternCLoc, diag::note_module_import_in_extern_c); in checkModuleImportContext()
15078 Diag(ImportLoc, getLangOpts().CompilingModule in ActOnModuleImport()
15195 Diag(PrevDecl->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnPragmaRedefineExtname()