Lines Matching refs:diag

215   S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II;  in recoverFromTypeInKnownDependentBase()
357 PDiag(diag::err_unknown_type_or_class_name_suggest) in getTypeName()
478 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnDelayedDefaultTemplateArg()
573 diagnoseTypo(Corrected, PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName()
579 PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName()
585 PDiag(diag::err_unknown_nested_typename_suggest) in DiagnoseUnknownTypeName()
615 Diag(IILoc, diag::err_template_missing_args) << TplName; in DiagnoseUnknownTypeName()
617 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
628 Diag(IILoc, diag::err_unknown_typename) << II; in DiagnoseUnknownTypeName()
630 Diag(IILoc, diag::err_typename_nested_not_found) in DiagnoseUnknownTypeName()
633 unsigned DiagID = diag::err_typename_missing; in DiagnoseUnknownTypeName()
635 DiagID = diag::ext_typename_missing; in DiagnoseUnknownTypeName()
697 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
703 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
813 unsigned UnqualifiedDiag = diag::err_undeclared_var_use_suggest; in ClassifyName()
814 unsigned QualifiedDiag = diag::err_no_member_suggest; in ClassifyName()
821 UnqualifiedDiag = diag::err_no_template_suggest; in ClassifyName()
822 QualifiedDiag = diag::err_no_member_template_suggest; in ClassifyName()
827 UnqualifiedDiag = diag::err_unknown_typename_suggest; in ClassifyName()
828 QualifiedDiag = diag::err_unknown_nested_typename_suggest; in ClassifyName()
1568 DiagID = diag::warn_unused_exception_param; in DiagnoseUnusedDecl()
1570 DiagID = diag::warn_unused_label; in DiagnoseUnusedDecl()
1572 DiagID = diag::warn_unused_variable; in DiagnoseUnusedDecl()
1588 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel()
1649 diagnoseTypo(C, PDiag(diag::err_undef_interface_suggest) << Id); in getObjCInterfaceDecl()
1737 Diag(Loc, diag::warn_implicit_decl_requires_sysheader) in LazilyCreateBuiltin()
1743 Diag(Loc, diag::ext_implicit_lib_function_decl) in LazilyCreateBuiltin()
1746 !Diags.isIgnored(diag::ext_implicit_lib_function_decl, Loc)) in LazilyCreateBuiltin()
1747 Diag(Loc, diag::note_include_header_or_declare) in LazilyCreateBuiltin()
1854 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef) in isIncompatibleTypedef()
1857 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1867 Diag(New->getLocation(), diag::err_redefinition_different_typedef) in isIncompatibleTypedef()
1870 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1932 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeTypedefNameDecl()
1937 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2027 Diag(New->getLocation(), diag::err_redefinition) in MergeTypedefNameDecl()
2029 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2046 Diag(New->getLocation(), diag::ext_redefinition_of_typedef) in MergeTypedefNameDecl()
2048 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2147 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch) in mergeAlignedAttrs()
2150 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration); in mergeAlignedAttrs()
2163 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition) in mergeAlignedAttrs()
2165 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration) in mergeAlignedAttrs()
2315 ? diag::err_alias_after_tentative in checkNewAttributesAfterDef()
2316 : diag::err_redefinition; in checkNewAttributesAfterDef()
2318 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2352 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition) in checkNewAttributesAfterDef()
2354 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration) in checkNewAttributesAfterDef()
2363 diag::warn_attribute_precede_definition); in checkNewAttributesAfterDef()
2364 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2389 Diag(New->getLocation(), diag::err_different_asm_label); in mergeDeclAttributes()
2390 Diag(OldA->getLocation(), diag::note_previous_declaration); in mergeDeclAttributes()
2395 Diag(New->getLocation(), diag::err_late_asm_label_name) in mergeDeclAttributes()
2453 diag::err_carries_dependency_missing_on_first_decl) << 1/*Param*/; in mergeParamDeclAttributes()
2461 diag::note_carries_dependency_missing_first_decl) << 1/*Param*/; in mergeParamDeclAttributes()
2492 S.Diag(NewParam->getLocation(), diag::warn_mismatched_nullability_attr) in mergeParamDeclTypes()
2501 S.Diag(OldParam->getLocation(), diag::note_previous_declaration); in mergeParamDeclTypes()
2550 static std::pair<diag::kind, SourceLocation>
2552 diag::kind PrevDiag; in getNoteDiagForInvalidRedeclaration()
2555 PrevDiag = diag::note_previous_definition; in getNoteDiagForInvalidRedeclaration()
2557 PrevDiag = diag::note_previous_implicit_declaration; in getNoteDiagForInvalidRedeclaration()
2561 PrevDiag = diag::note_previous_declaration; in getNoteDiagForInvalidRedeclaration()
2631 S.Diag(New->getLocation(), diag::err_using_decl_conflict_reverse); in checkUsingShadowRedecl()
2632 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target); in checkUsingShadowRedecl()
2633 S.Diag(OldS->getUsingDecl()->getLocation(), diag::note_using_decl) << 0; in checkUsingShadowRedecl()
2672 Diag(New->getLocation(), diag::err_using_decl_friend); in MergeFunctionDecl()
2674 diag::note_using_decl_target); in MergeFunctionDecl()
2676 diag::note_using_decl) << 0; in MergeFunctionDecl()
2685 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeFunctionDecl()
2687 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2696 diag::kind PrevDiag; in MergeFunctionDecl()
2711 Diag(New->getLocation(), diag::ext_static_non_static) << New; in MergeFunctionDecl()
2714 Diag(New->getLocation(), diag::err_static_non_static) << New; in MergeFunctionDecl()
2722 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration) in MergeFunctionDecl()
2724 Diag(Old->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2763 Diag(New->getLocation(), diag::err_cconv_change) in MergeFunctionDecl()
2770 Diag(First->getLocation(), diag::note_previous_declaration); in MergeFunctionDecl()
2785 Diag(New->getLocation(), diag::err_regparm_mismatch) in MergeFunctionDecl()
2788 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2799 Diag(New->getLocation(), diag::err_returns_retained_mismatch); in MergeFunctionDecl()
2800 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2837 Diag(New->getLocation(), diag::err_different_pass_object_size_params) in MergeFunctionDecl()
2871 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type) in MergeFunctionDecl()
2874 Diag(New->getLocation(), diag::err_ovl_diff_return_type) in MergeFunctionDecl()
2922 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member); in MergeFunctionDecl()
2934 NewDiag = diag::err_constructor_redeclared; in MergeFunctionDecl()
2936 NewDiag = diag::err_destructor_redeclared; in MergeFunctionDecl()
2938 NewDiag = diag::err_conv_function_redeclared; in MergeFunctionDecl()
2940 NewDiag = diag::err_member_redeclared; in MergeFunctionDecl()
2944 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation) in MergeFunctionDecl()
2960 diag::err_definition_of_implicitly_declared_member) in MergeFunctionDecl()
2966 diag::err_definition_of_explicitly_defaulted_member) in MergeFunctionDecl()
2978 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl); in MergeFunctionDecl()
2980 diag::note_noreturn_missing_first_decl); in MergeFunctionDecl()
2990 diag::err_carries_dependency_missing_on_first_decl) << 0/*Function*/; in MergeFunctionDecl()
2992 diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; in MergeFunctionDecl()
3020 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New; in MergeFunctionDecl()
3023 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeFunctionDecl()
3127 diag::ext_param_promoted_not_compatible_with_prototype) in MergeFunctionDecl()
3132 diag::note_previous_declaration); in MergeFunctionDecl()
3154 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New; in MergeFunctionDecl()
3155 Diag(OldLocation, diag::note_previous_builtin_declaration) in MergeFunctionDecl()
3172 PrevDiag = diag::note_previous_builtin_declaration; in MergeFunctionDecl()
3175 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName(); in MergeFunctionDecl()
3326 ? diag::err_redefinition_different_type in MergeVarDeclTypes()
3327 : diag::err_redeclaration_different_type) in MergeVarDeclTypes()
3330 diag::kind PrevDiag; in MergeVarDeclTypes()
3413 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeVarDecl()
3416 diag::note_previous_definition); in MergeVarDecl()
3432 Diag(New->getLocation(), diag::err_duplicate_member) in MergeVarDecl()
3434 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeVarDecl()
3444 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName(); in MergeVarDecl()
3445 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3452 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration) in MergeVarDecl()
3454 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3471 diag::kind PrevDiag; in MergeVarDecl()
3481 Diag(New->getLocation(), diag::ext_static_non_static) in MergeVarDecl()
3485 Diag(New->getLocation(), diag::err_static_non_static) in MergeVarDecl()
3505 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName(); in MergeVarDecl()
3513 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName(); in MergeVarDecl()
3519 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName(); in MergeVarDecl()
3532 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName(); in MergeVarDecl()
3539 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName(); in MergeVarDecl()
3542 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName(); in MergeVarDecl()
3549 Diag(New->getLocation(), diag::err_thread_thread_different_kind) in MergeVarDecl()
3569 Diag(New->getLocation(), diag::err_redefinition) << New; in MergeVarDecl()
3570 Diag(Def->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3577 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeVarDecl()
3671 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3679 Diag(tagLoc, diag::note_typedef_changes_linkage) in setTagNameForLinkagePurposes()
3745 diag::err_typecheck_invalid_restrict_not_pointer_noarg) in ParsedFreeStandingDeclSpec()
3753 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_tag) in ParsedFreeStandingDeclSpec()
3756 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_no_declarators); in ParsedFreeStandingDeclSpec()
3765 Diag(DS.getConceptSpecLoc(), diag::err_concept_wrong_decl_kind); in ParsedFreeStandingDeclSpec()
3793 Diag(SS.getBeginLoc(), diag::err_standalone_class_nested_name_specifier) in ParsedFreeStandingDeclSpec()
3841 Diag(DS.getLocStart(), diag::ext_ms_anonymous_record) in ParsedFreeStandingDeclSpec()
3865 Diag(DS.getLocStart(), diag::ext_typedef_without_a_name) in ParsedFreeStandingDeclSpec()
3873 Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class) in ParsedFreeStandingDeclSpec()
3890 Diag(DS.getLocStart(), diag::ext_no_declarators) << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
3902 unsigned DiagID = diag::warn_standalone_specifier; in ParsedFreeStandingDeclSpec()
3904 DiagID = diag::ext_standalone_specifier; in ParsedFreeStandingDeclSpec()
3913 Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_nonmember); in ParsedFreeStandingDeclSpec()
3944 Diag(attrs->getLoc(), diag::warn_declspec_attribute_ignored) in ParsedFreeStandingDeclSpec()
3976 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl) in CheckAnonMemberRedeclaration()
3978 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration()
4104 S.Diag(DefaultInitLoc, diag::err_multiple_mem_union_initialization); in checkDuplicateDefaultInit()
4105 S.Diag(findDefaultInitializer(Parent), diag::note_previous_initializer) << 0; in checkDuplicateDefaultInit()
4128 Diag(Record->getLocation(), diag::ext_anonymous_union); in BuildAnonymousStructOrUnion()
4130 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct); in BuildAnonymousStructOrUnion()
4132 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct); in BuildAnonymousStructOrUnion()
4148 Diag(Record->getLocation(), diag::err_anonymous_union_not_static) in BuildAnonymousStructOrUnion()
4161 diag::err_anonymous_union_with_storage_spec) in BuildAnonymousStructOrUnion()
4174 Diag(DS.getConstSpecLoc(), diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4179 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4184 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4189 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4207 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member) in BuildAnonymousStructOrUnion()
4231 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4235 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4244 diag::ext_anonymous_record_with_anonymous_type) in BuildAnonymousStructOrUnion()
4254 unsigned DK = diag::err_anonymous_record_bad_member; in BuildAnonymousStructOrUnion()
4256 DK = diag::err_anonymous_record_with_type; in BuildAnonymousStructOrUnion()
4258 DK = diag::err_anonymous_record_with_function; in BuildAnonymousStructOrUnion()
4260 DK = diag::err_anonymous_record_with_static; in BuildAnonymousStructOrUnion()
4264 DK == diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4265 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4284 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member) in BuildAnonymousStructOrUnion()
4314 Diag(Record->getLocation(), diag::err_mutable_nonmember); in BuildAnonymousStructOrUnion()
4418 diag::err_field_incomplete) || in BuildMicrosoftCAnonymousStruct()
4681 Diag(NameInfo.getLoc(), diag::err_member_name_of_class) << Name; in DiagnoseClassNameShadow()
4719 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification in diagnoseQualifiedDeclaration()
4720 : diag::err_member_extra_qualification) in diagnoseQualifiedDeclaration()
4724 Diag(Loc, diag::warn_namespace_member_extra_qualification) << Name; in diagnoseQualifiedDeclaration()
4733 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4736 Diag(Loc, diag::err_invalid_declarator_global_scope) in diagnoseQualifiedDeclaration()
4739 Diag(Loc, diag::err_invalid_declarator_in_function) in diagnoseQualifiedDeclaration()
4742 Diag(Loc, diag::err_invalid_declarator_in_block) in diagnoseQualifiedDeclaration()
4745 Diag(Loc, diag::err_invalid_declarator_scope) in diagnoseQualifiedDeclaration()
4753 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4777 Diag(Loc, diag::err_decltype_in_declarator) in diagnoseQualifiedDeclaration()
4794 diag::err_declarator_need_ident) in HandleDeclarator()
4822 diag::err_template_qualified_declarator_no_match) in HandleDeclarator()
4836 diag::err_member_def_undefined_record) in HandleDeclarator()
4967 diag:: err_concept_wrong_decl_kind); in HandleDeclarator()
4973 diag::err_concept_decls_may_only_appear_in_namespace_scope); in HandleDeclarator()
4983 Diag(D.getIdentifierLoc(), diag::err_template_typedef); in HandleDeclarator()
5162 diag::err_inline_non_function); in DiagnoseFunctionSpecifiers()
5166 diag::err_virtual_non_function); in DiagnoseFunctionSpecifiers()
5170 diag::err_explicit_non_function); in DiagnoseFunctionSpecifiers()
5174 diag::err_noreturn_non_function); in DiagnoseFunctionSpecifiers()
5182 Diag(D.getIdentifierLoc(), diag::err_qualified_typedef_declarator) in ActOnTypedefDeclarator()
5193 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnTypedefDeclarator()
5197 diag::err_concept_wrong_decl_kind); in ActOnTypedefDeclarator()
5200 Diag(D.getName().StartLocation, diag::err_typedef_not_identifier) in ActOnTypedefDeclarator()
5238 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5242 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5244 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5246 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5249 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5372 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var) in inferObjCARCLifetime()
5389 Diag(var->getLocation(), diag::err_arc_thread_ownership) in inferObjCARCLifetime()
5406 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static); in checkAttributesAfterMerging()
5412 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static); in checkAttributesAfterMerging()
5423 S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD; in checkAttributesAfterMerging()
5434 diag::err_attribute_selectany_non_extern_data); in checkAttributesAfterMerging()
5444 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern) in checkAttributesAfterMerging()
5455 diag::err_invalid_attribute_on_virtual_function) in checkAttributesAfterMerging()
5507 unsigned DiagID = JustWarn ? diag::warn_attribute_dll_redeclaration in checkDLLAttributeRedeclaration()
5508 : diag::err_attribute_dll_redeclaration; in checkDLLAttributeRedeclaration()
5512 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5537 diag::warn_redeclaration_without_attribute_prev_attribute_ignored) in checkDLLAttributeRedeclaration()
5539 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5540 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute); in checkDLLAttributeRedeclaration()
5549 diag::warn_dllimport_dropped_from_inline_function) in checkDLLAttributeRedeclaration()
5725 Diag(D.getIdentifierLoc(), diag::err_opencl_function_pointer_variable); in ActOnVariableDeclarator()
5736 Diag(D.getIdentifierLoc(), diag::err_opencl_half_declaration) << R; in ActOnVariableDeclarator()
5745 Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember); in ActOnVariableDeclarator()
5757 getLangOpts().CPlusPlus1z ? diag::ext_register_storage_class in ActOnVariableDeclarator()
5758 : diag::warn_deprecated_register) in ActOnVariableDeclarator()
5764 Diag(D.getIdentifierLoc(), diag::err_bad_variable_name) in ActOnVariableDeclarator()
5776 Diag(D.getIdentifierLoc(), diag::err_typecheck_sclass_fscope); in ActOnVariableDeclarator()
5787 Diag(D.getIdentifierLoc(), diag::err_wrong_sampler_addressspace); in ActOnVariableDeclarator()
5796 Diag(D.getLocStart(), diag::err_event_t_global_var); in ActOnVariableDeclarator()
5801 Diag(D.getLocStart(), diag::err_event_t_addr_space_qual); in ActOnVariableDeclarator()
5834 diag::err_static_out_of_line) in ActOnVariableDeclarator()
5846 diag::err_storage_class_for_static_member) in ActOnVariableDeclarator()
5858 diag::err_static_data_member_not_allowed_in_local_class) in ActOnVariableDeclarator()
5866 ? diag::warn_cxx98_compat_static_data_member_in_union in ActOnVariableDeclarator()
5867 : diag::ext_static_data_member_in_union) << Name; in ActOnVariableDeclarator()
5871 diag::err_static_data_member_not_allowed_in_anon_struct) in ActOnVariableDeclarator()
5893 diag::err_template_variable_noparams) in ActOnVariableDeclarator()
5915 ? diag::warn_cxx11_compat_variable_template in ActOnVariableDeclarator()
5916 : diag::ext_variable_template); in ActOnVariableDeclarator()
5980 diag::err_concept_decl_invalid_specifiers) in ActOnVariableDeclarator()
5987 diag::err_concept_decl_invalid_specifiers) in ActOnVariableDeclarator()
6016 diag::err_thread_non_global) in ActOnVariableDeclarator()
6030 diag::err_thread_unsupported); in ActOnVariableDeclarator()
6049 diag::warn_static_local_in_extern_inline); in ActOnVariableDeclarator()
6056 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
6061 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
6065 Diag(NewVD->getLocation(), diag::err_module_private_local) in ActOnVariableDeclarator()
6082 diag::err_thread_unsupported); in ActOnVariableDeclarator()
6113 Diag(E->getExprLoc(), diag::warn_asm_label_on_auto_decl) << Label; in ActOnVariableDeclarator()
6119 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
6133 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
6137 Diag(E->getExprLoc(), diag::err_asm_invalid_global_var_reg) << Label; in ActOnVariableDeclarator()
6139 Diag(E->getExprLoc(), diag::err_asm_register_size_mismatch) << Label; in ActOnVariableDeclarator()
6143 Diag(D.getLocStart(), diag::err_asm_bad_register_type); in ActOnVariableDeclarator()
6158 Diag(NewVD->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnVariableDeclarator()
6198 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line) in ActOnVariableDeclarator()
6205 Diag(D.getIdentifierLoc(), diag::err_no_member) in ActOnVariableDeclarator()
6268 Diag(D.getLocStart(), diag::err_main_global_variable); in ActOnVariableDeclarator()
6273 Diag(D.getLocStart(), diag::warn_main_redefined); in ActOnVariableDeclarator()
6303 if (Diags.isIgnored(diag::warn_decl_shadow, R.getNameLoc())) in CheckShadow()
6370 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC; in CheckShadow()
6371 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration); in CheckShadow()
6376 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation())) in CheckShadow()
6455 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6457 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6518 Diag(NewVD->getLocation(), diag::err_statically_allocated_object) in CheckVariableDeclarationType()
6530 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl); in CheckVariableDeclarationType()
6540 Diag(NewVD->getLocation(), diag::err_static_function_scope); in CheckVariableDeclarationType()
6557 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6560 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6574 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6577 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space) in CheckVariableDeclarationType()
6589 Diag(NewVD->getLocation(), diag::err_opencl_non_kernel_variable) in CheckVariableDeclarationType()
6592 Diag(NewVD->getLocation(), diag::err_opencl_non_kernel_variable) in CheckVariableDeclarationType()
6604 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local); in CheckVariableDeclarationType()
6607 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local); in CheckVariableDeclarationType()
6630 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope) in CheckVariableDeclarationType()
6633 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage) in CheckVariableDeclarationType()
6636 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage) in CheckVariableDeclarationType()
6644 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckVariableDeclarationType()
6646 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage); in CheckVariableDeclarationType()
6651 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size); in CheckVariableDeclarationType()
6660 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type) in CheckVariableDeclarationType()
6668 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal); in CheckVariableDeclarationType()
6674 Diag(NewVD->getLocation(), diag::err_block_on_vm); in CheckVariableDeclarationType()
6681 diag::err_constexpr_var_non_literal)) { in CheckVariableDeclarationType()
6776 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function); in ReportOverrides()
6808 ReportOverrides(*this, diag::err_non_deleted_override, MD, OEK_Deleted); in AddOverriddenMethods()
6811 ReportOverrides(*this, diag::err_deleted_override, MD, OEK_NonDeleted); in AddOverriddenMethods()
6890 unsigned DiagMsg = IsLocalFriend ? diag::err_no_matching_local_friend in DiagnoseInvalidRedeclaration()
6891 : diag::err_member_decl_does_not_match; in DiagnoseInvalidRedeclaration()
6972 ? diag::err_no_matching_local_friend_suggest in DiagnoseInvalidRedeclaration()
6973 : diag::err_member_decl_does_not_match_suggest) in DiagnoseInvalidRedeclaration()
7006 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match in DiagnoseInvalidRedeclaration()
7007 : diag::note_local_decl_close_param_match) in DiagnoseInvalidRedeclaration()
7011 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match) in DiagnoseInvalidRedeclaration()
7015 IsMember ? diag::note_member_def_close_match in DiagnoseInvalidRedeclaration()
7016 : diag::note_local_decl_close_match); in DiagnoseInvalidRedeclaration()
7028 diag::err_typecheck_sclass_func); in getFunctionStorageClass()
7044 diag::err_static_block_func); in getFunctionStorageClass()
7096 diag::err_abstract_type_in_decl, SemaRef.AbstractReturnType)) in CreateNewFunctionDecl()
7135 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member); in CreateNewFunctionDecl()
7150 diag::err_conv_function_not_member); in CreateNewFunctionDecl()
7168 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type) in CreateNewFunctionDecl()
7254 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param); in checkIsValidOpenCLKernelParameter()
7262 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param); in checkIsValidOpenCLKernelParameter()
7276 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7348 diag::err_record_with_pointers_kernel_param) in checkIsValidOpenCLKernelParameter()
7352 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7355 S.Diag(PD->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7365 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7369 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here) in checkIsValidOpenCLKernelParameter()
7394 diag::err_invalid_thread) in ActOnFunctionDeclarator()
7455 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_virtual_in_union); in ActOnFunctionDeclarator()
7485 Diag(NewFD->getLocation(), diag::err_destructor_template); in ActOnFunctionDeclarator()
7534 Diag(D.getIdentifierLoc(), diag::err_template_spec_decl_friend) in ActOnFunctionDeclarator()
7563 diag::err_virtual_non_function); in ActOnFunctionDeclarator()
7567 diag::err_virtual_out_of_class) in ActOnFunctionDeclarator()
7573 diag::err_virtual_member_function_template) in ActOnFunctionDeclarator()
7582 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual); in ActOnFunctionDeclarator()
7610 diag::err_inline_declaration_block_scope) << Name in ActOnFunctionDeclarator()
7623 diag::err_explicit_out_of_class) in ActOnFunctionDeclarator()
7630 diag::err_explicit_non_ctor_or_conv_function) in ActOnFunctionDeclarator()
7644 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor); in ActOnFunctionDeclarator()
7652 diag::err_function_concept_not_defined); in ActOnFunctionDeclarator()
7664 Diag(NewFD->getLocation(), diag::err_function_concept_exception_spec) in ActOnFunctionDeclarator()
7676 Diag(NewFD->getLocation(), diag::err_function_concept_with_params); in ActOnFunctionDeclarator()
7688 diag::err_concept_decl_invalid_specifiers) in ActOnFunctionDeclarator()
7695 diag::err_concept_decl_invalid_specifiers) in ActOnFunctionDeclarator()
7702 diag::err_concept_decl_invalid_specifiers) in ActOnFunctionDeclarator()
7713 Diag(ModulePrivateLoc, diag::err_module_private_specialization) in ActOnFunctionDeclarator()
7767 diag::err_static_out_of_line) in ActOnFunctionDeclarator()
7803 Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnFunctionDeclarator()
7874 Diag(NewFD->getLocation(), diag::err_vm_func_decl); in ActOnFunctionDeclarator()
7903 diag::err_opencl_return_value_with_address_space); in ActOnFunctionDeclarator()
7937 CC == CC_X86StdCall ? diag::warn_cconv_knr : diag::err_cconv_knr; in ActOnFunctionDeclarator()
7954 diag::ext_operator_new_delete_declared_inline) in ActOnFunctionDeclarator()
7974 Diag(D.getIdentifierLoc(), diag::err_function_template_partial_spec) in ActOnFunctionDeclarator()
8017 diag::ext_function_specialization_in_class : in ActOnFunctionDeclarator()
8018 diag::err_function_specialization_in_class) in ActOnFunctionDeclarator()
8034 diag::err_explicit_specialization_inconsistent_storage_class) in ActOnFunctionDeclarator()
8041 diag::ext_explicit_specialization_storage_class) in ActOnFunctionDeclarator()
8176 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration) in ActOnFunctionDeclarator()
8189 diag::err_attribute_overloadable_no_prototype) in ActOnFunctionDeclarator()
8244 Diag(D.getIdentifierLoc(), diag::err_static_kernel); in ActOnFunctionDeclarator()
8251 Diag(D.getIdentifierLoc(), diag::err_expected_kernel_void_return_type) in ActOnFunctionDeclarator()
8270 Diag(NewFD->getLocation(), diag::err_config_scalar_return); in ActOnFunctionDeclarator()
8355 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8364 diag::note_attribute_overloadable_prev_overload); in CheckFunctionDeclaration()
8383 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8386 diag::note_attribute_overloadable_prev_overload); in CheckFunctionDeclaration()
8429 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const) in CheckFunctionDeclaration()
8493 Diag(NewFD->getLocation(), diag::err_destructor_name); in CheckFunctionDeclaration()
8511 ReportOverrides(*this, diag::err_static_overrides_virtual, Method); in CheckFunctionDeclaration()
8560 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete) in CheckFunctionDeclaration()
8564 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R; in CheckFunctionDeclaration()
8580 ? diag::err_static_main : diag::warn_static_main) in CheckMain()
8583 Diag(DS.getInlineSpecLoc(), diag::err_inline_main) in CheckMain()
8588 Diag(NoreturnLoc, diag::ext_noreturn_main); in CheckMain()
8589 Diag(NoreturnLoc, diag::note_main_remove_noreturn) in CheckMain()
8593 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_main) in CheckMain()
8599 Diag(FD->getLocation(), diag::err_opencl_no_main) in CheckMain()
8618 Diag(FD->getTypeSpecStartLoc(), diag::ext_main_returns_nonint); in CheckMain()
8621 Diag(RTRange.getBegin(), diag::note_main_change_return_type) in CheckMain()
8635 Diag(FD->getTypeSpecStartLoc(), diag::err_main_returns_nonint) in CheckMain()
8652 Diag(FD->getLocation(), diag::ext_variadic_main); in CheckMain()
8664 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams; in CheckMain()
8701 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i]; in CheckMain()
8708 Diag(FD->getLocation(), diag::warn_main_one_arg); in CheckMain()
8712 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMain()
8732 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMSVCRTEntryPoint()
8749 Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant) in CheckForConstantInitializer()
9041 unsigned diag; in HandleDeclRefExpr() local
9043 diag = diag::warn_uninit_self_reference_in_reference_init; in HandleDeclRefExpr()
9045 diag = diag::warn_static_self_reference_in_init; in HandleDeclRefExpr()
9049 diag = diag::warn_uninit_self_reference_in_init; in HandleDeclRefExpr()
9056 S.PDiag(diag) in HandleDeclRefExpr()
9108 ? diag::err_init_capture_no_expression in deduceVarTypeFromInitializer()
9109 : diag::err_auto_var_init_no_expression) in deduceVarTypeFromInitializer()
9116 IsInitCapture ? diag::err_init_capture_multiple_expressions in deduceVarTypeFromInitializer()
9117 : diag::err_auto_var_init_multiple_expressions) in deduceVarTypeFromInitializer()
9125 ? diag::err_init_capture_paren_braces in deduceVarTypeFromInitializer()
9126 : diag::err_auto_var_init_paren_braces) in deduceVarTypeFromInitializer()
9149 diag::err_init_capture_deduction_failure_from_init_list) in deduceVarTypeFromInitializer()
9155 Diag(Range.getBegin(), diag::err_init_capture_deduction_failure) in deduceVarTypeFromInitializer()
9170 Diag(Loc, diag::warn_auto_var_is_id) << Name << Range; in deduceVarTypeFromInitializer()
9190 Diag(Method->getLocation(), diag::err_member_function_initialization) in AddInitializerToDecl()
9199 Diag(RealDecl->getLocation(), diag::err_illegal_initializer); in AddInitializerToDecl()
9247 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition); in AddInitializerToDecl()
9254 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init); in AddInitializerToDecl()
9267 diag::err_typecheck_decl_incomplete_type)) { in AddInitializerToDecl()
9274 diag::err_abstract_type_in_decl, in AddInitializerToDecl()
9290 Diag(VDecl->getLocation(), diag::err_redefinition) in AddInitializerToDecl()
9292 Diag(Def->getLocation(), diag::note_previous_definition); in AddInitializerToDecl()
9312 Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization) in AddInitializerToDecl()
9315 diag::note_previous_initializer) in AddInitializerToDecl()
9332 Diag(VDecl->getLocation(), diag::err_local_cant_init); in AddInitializerToDecl()
9427 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, in AddInitializerToDecl()
9471 diag::ext_aggregate_init_not_constant) in AddInitializerToDecl()
9507 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const) in AddInitializerToDecl()
9518 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile); in AddInitializerToDecl()
9526 Diag(Loc, diag::ext_in_class_initializer_non_constant) in AddInitializerToDecl()
9531 Diag(Loc, diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9542 diag::ext_in_class_initializer_float_type_cxx11) in AddInitializerToDecl()
9545 diag::note_in_class_initializer_float_type_cxx11) in AddInitializerToDecl()
9548 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type) in AddInitializerToDecl()
9552 Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9560 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type) in AddInitializerToDecl()
9566 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type) in AddInitializerToDecl()
9576 Diag(VDecl->getLocation(), diag::warn_extern_init); in AddInitializerToDecl()
9631 diag::err_typecheck_decl_incomplete_type)) { in ActOnInitializerError()
9638 diag::err_abstract_type_in_decl, in ActOnInitializerError()
9659 Diag(Var->getLocation(), diag::err_auto_var_requires_init) in ActOnUninitializedDecl()
9674 diag::err_constexpr_static_mem_var_requires_init) in ActOnUninitializedDecl()
9677 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl); in ActOnUninitializedDecl()
9686 Diag(Var->getLocation(), diag::err_var_concept_not_initialized); in ActOnUninitializedDecl()
9696 Diag(Var->getLocation(), diag::err_opencl_constant_no_init); in ActOnUninitializedDecl()
9721 diag::err_typecheck_decl_incomplete_type)) in ActOnUninitializedDecl()
9727 diag::err_abstract_type_in_decl, in ActOnUninitializedDecl()
9732 Diag(Var->getLocation(), diag::warn_private_extern); in ActOnUninitializedDecl()
9733 Diag(Var->getLocation(), diag::note_private_extern); in ActOnUninitializedDecl()
9749 diag::err_illegal_decl_array_incomplete_type)) in ActOnUninitializedDecl()
9763 diag::ext_typecheck_decl_incomplete_type); in ActOnUninitializedDecl()
9777 diag::err_typecheck_incomplete_array_needs_initializer); in ActOnUninitializedDecl()
9785 Diag(Var->getLocation(), diag::err_reference_var_requires_init) in ActOnUninitializedDecl()
9803 diag::err_typecheck_decl_incomplete_type)) { in ActOnUninitializedDecl()
9813 diag::err_abstract_type_in_decl, in ActOnUninitializedDecl()
9876 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var); in ActOnCXXForRangeDecl()
9905 Diag(VD->getOuterLocStart(), diag::err_for_range_storage_class) in ActOnCXXForRangeDecl()
9970 !getDiagnostics().isIgnored(diag::warn_missing_variable_declarations, in CheckCompleteVariableDeclaration()
9978 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var; in CheckCompleteVariableDeclaration()
9987 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor); in CheckCompleteVariableDeclaration()
9989 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
9997 Diag(Culprit->getExprLoc(), diag::err_thread_dynamic_init) in CheckCompleteVariableDeclaration()
10000 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
10073 !getDiagnostics().isIgnored(diag::warn_global_constructor, in CheckCompleteVariableDeclaration()
10081 Diag(var->getLocation(), diag::warn_global_constructor) in CheckCompleteVariableDeclaration()
10092 diag::note_invalid_subexpr_in_const_expr) { in CheckCompleteVariableDeclaration()
10096 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
10146 Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum) in FinalizeDeclaration()
10182 ? diag::warn_attribute_dllimport_static_field_definition in FinalizeDeclaration()
10183 : diag::err_attribute_dllimport_static_field_definition); in FinalizeDeclaration()
10184 Diag(IA->getLocation(), diag::note_attribute); in FinalizeDeclaration()
10200 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD in FinalizeDeclaration()
10208 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr; in FinalizeDeclaration()
10238 diag::err_type_tag_for_datatype_not_ice) in FinalizeDeclaration()
10244 diag::err_type_tag_for_datatype_too_large) in FinalizeDeclaration()
10316 diag::err_auto_different_deductions) in BuildDeclaratorGroup()
10345 if (Diags.isIgnored(diag::warn_doc_param_not_found, in ActOnDocumentableDecls()
10347 Diags.isIgnored(diag::warn_unknown_comment_command_name, in ActOnDocumentableDecls()
10397 diag::err_invalid_storage_class_in_func_decl); in ActOnParamDeclarator()
10402 Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_thread) in ActOnParamDeclarator()
10405 Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnParamDeclarator()
10408 Diag(DS.getConceptSpecLoc(), diag::err_concept_wrong_decl_kind); in ActOnParamDeclarator()
10422 Diag(D.getIdentifierLoc(), diag::err_qualified_param_declarator) in ActOnParamDeclarator()
10433 Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name) in ActOnParamDeclarator()
10452 Diag(D.getIdentifierLoc(), diag::err_param_redefinition) << II; in ActOnParamDeclarator()
10453 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnParamDeclarator()
10488 Diag(New->getLocation(), diag::err_module_private_local) in ActOnParamDeclarator()
10494 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnParamDeclarator()
10524 Diag((*Param)->getLocation(), diag::warn_unused_parameter) in DiagnoseUnusedParameters()
10542 Diag(D->getLocation(), diag::warn_return_value_size) in DiagnoseSizeOfParametersAndReturnValue()
10554 Diag((*Param)->getLocation(), diag::warn_parameter_size) in DiagnoseSizeOfParametersAndReturnValue()
10577 NameLoc, diag::err_arc_array_param_no_ownership, T, false)); in CheckParameter()
10594 RequireNonAbstractType(NameLoc, T, diag::err_abstract_type_in_decl, in CheckParameter()
10603 diag::err_object_cannot_be_passed_returned_by_value) << 1 << T in CheckParameter()
10617 Diag(NameLoc, diag::err_arg_with_address_space); in CheckParameter()
10638 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared) in ActOnFinishKNRParamDeclarations()
10765 Diag(FD->getLocation(), diag::err_redefinition_extern_inline) in CheckForFunctionRedefinition()
10768 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName(); in CheckForFunctionRedefinition()
10770 Diag(Definition->getLocation(), diag::note_previous_definition); in CheckForFunctionRedefinition()
10868 Diag(FD->getLocation(), diag::err_builtin_definition) << FD; in ActOnStartOfFunctionDef()
10879 diag::err_func_def_incomplete_result)) in ActOnStartOfFunctionDef()
10946 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition); in ActOnStartOfFunctionDef()
10956 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container); in ActOnStartOfFunctionDef()
11051 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto) in ActOnFinishFunctionBody()
11099 Diag(FD->getLocation(), diag::ext_pure_function_definition); in ActOnFinishFunctionBody()
11129 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD; in ActOnFinishFunctionBody()
11139 diag::note_declaration_not_a_prototype) in ActOnFinishFunctionBody()
11184 Diag(MD->getLocEnd(), diag::warn_objc_missing_super_call) in ActOnFinishFunctionBody()
11209 diag::warn_objc_designated_init_missing_super_call); in ActOnFinishFunctionBody()
11211 diag::note_objc_designated_init_marked_here); in ActOnFinishFunctionBody()
11219 diag::warn_objc_secondary_init_missing_init_call); in ActOnFinishFunctionBody()
11273 Diag(S->getLocStart(), diag::err_non_asm_stmt_in_naked_function); in ActOnFinishFunctionBody()
11274 Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in ActOnFinishFunctionBody()
11328 Diag(Loc, diag::warn_use_out_of_scope_declaration) << ExternCPrev; in ImplicitlyDefineFunction()
11329 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration); in ImplicitlyDefineFunction()
11336 diag_id = diag::warn_builtin_unknown; in ImplicitlyDefineFunction()
11338 diag_id = diag::ext_implicit_function_decl; in ImplicitlyDefineFunction()
11340 diag_id = diag::warn_implicit_function_decl; in ImplicitlyDefineFunction()
11351 diagnoseTypo(Corrected, PDiag(diag::note_function_suggestion), in ImplicitlyDefineFunction()
11538 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
11583 Diag(UnderlyingLoc, diag::err_enum_invalid_underlying) << T; in CheckEnumUnderlyingType()
11595 Diag(EnumLoc, diag::err_enum_redeclare_scoped_mismatch) in CheckEnumRedeclaration()
11597 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11607 Diag(EnumLoc, diag::err_enum_redeclare_type_mismatch) in CheckEnumRedeclaration()
11609 Diag(Prev->getLocation(), diag::note_previous_declaration) in CheckEnumRedeclaration()
11618 Diag(EnumLoc, diag::err_enum_redeclare_fixed_mismatch) in CheckEnumRedeclaration()
11620 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11685 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
11704 Diag(NewTagLoc, diag::warn_struct_class_previous_tag_mismatch) in isAcceptableTagRedeclaration()
11708 Diag(I->getInnerLocStart(), diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
11726 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
11729 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
11733 Diag(NewTagLoc, diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
11852 Diag(KWLoc, diag::err_enum_template); in ActOnTag()
11875 Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams) in ActOnTag()
11946 Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec) in ActOnTag()
11976 Diag(NameLoc, diag::err_not_tag_in_scope) in ActOnTag()
12045 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace) in ActOnTag()
12199 Diag(KWLoc, diag::err_using_decl_conflict_reverse); in ActOnTag()
12201 diag::note_using_decl_target); in ActOnTag()
12202 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) in ActOnTag()
12226 Diag(KWLoc, diag::err_use_with_wrong_tag) in ActOnTag()
12231 Diag(KWLoc, diag::err_use_with_wrong_tag) << Name; in ActOnTag()
12232 Diag(PrevTagDecl->getLocation(), diag::note_previous_use); in ActOnTag()
12251 Diag(ScopedEnumKWLoc, diag::err_enum_class_reference) in ActOnTag()
12278 Diag(NameLoc, diag::ext_member_redeclared); in ActOnTag()
12279 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration); in ActOnTag()
12329 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name; in ActOnTag()
12331 Diag(NameLoc, diag::err_redefinition) << Name; in ActOnTag()
12332 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
12345 Diag(NameLoc, diag::err_nested_redefinition) << Name; in ActOnTag()
12347 diag::note_previous_definition); in ActOnTag()
12394 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind; in ActOnTag()
12395 Diag(PrevDecl->getLocation(), diag::note_declared_at); in ActOnTag()
12409 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind; in ActOnTag()
12410 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
12418 Diag(NameLoc, diag::err_tag_definition_of_typedef) in ActOnTag()
12420 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
12427 Diag(NameLoc, diag::err_redefinition_different_kind) << Name; in ActOnTag()
12428 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnTag()
12471 Diag(Loc, diag::ext_forward_ref_enum_def) in ActOnTag()
12473 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
12475 unsigned DiagID = diag::ext_forward_ref_enum; in ActOnTag()
12477 DiagID = diag::ext_ms_forward_ref_enum; in ActOnTag()
12479 DiagID = diag::err_forward_ref_enum; in ActOnTag()
12519 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier) in ActOnTag()
12564 Diag(New->getLocation(), diag::err_module_private_specialization) in ActOnTag()
12588 Diag(Loc, diag::err_type_defined_in_param_type) in ActOnTag()
12593 Diag(Loc, diag::warn_decl_in_param_list) << Context.getTagDeclType(New); in ActOnTag()
12800 if (RequireCompleteType(FieldLoc, FieldTy, diag::err_field_incomplete)) in VerifyBitField()
12803 return Diag(FieldLoc, diag::err_not_integral_type_bitfield) in VerifyBitField()
12805 return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield) in VerifyBitField()
12827 return Diag(FieldLoc, diag::err_bitfield_has_zero_width) << FieldName; in VerifyBitField()
12831 return Diag(FieldLoc, diag::err_bitfield_has_negative_width) in VerifyBitField()
12833 return Diag(FieldLoc, diag::err_anon_bitfield_has_negative_width) in VerifyBitField()
12853 return Diag(FieldLoc, diag::err_bitfield_width_exceeds_type_width) in VerifyBitField()
12857 return Diag(FieldLoc, diag::err_anon_bitfield_width_exceeds_type_width) in VerifyBitField()
12867 Diag(FieldLoc, diag::warn_bitfield_width_exceeds_type_width) in VerifyBitField()
12871 Diag(FieldLoc, diag::warn_anon_bitfield_width_exceeds_type_width) in VerifyBitField()
12915 Diag(Loc, diag::err_field_with_address_space); in HandleField()
12922 Diag(Loc, diag::err_event_t_struct_field); in HandleField()
12930 diag::err_invalid_thread) in HandleField()
13019 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) { in CheckFieldDecl()
13035 Diag(Loc, diag::err_opencl_bitfields); in CheckFieldDecl()
13050 Diag(Loc, diag::warn_illegal_constant_array_size); in CheckFieldDecl()
13055 Diag(Loc, diag::err_typecheck_negative_array_size); in CheckFieldDecl()
13057 Diag(Loc, diag::err_array_too_large) in CheckFieldDecl()
13060 Diag(Loc, diag::err_typecheck_field_variable_size); in CheckFieldDecl()
13067 diag::err_abstract_type_in_decl, in CheckFieldDecl()
13089 DiagID = getLangOpts().MSVCCompat ? diag::ext_mutable_reference in CheckFieldDecl()
13090 : diag::err_mutable_reference; in CheckFieldDecl()
13092 DiagID = diag::err_mutable_const; in CheckFieldDecl()
13099 if (DiagID != diag::ext_mutable_reference) { in CheckFieldDecl()
13118 Diag(Loc, diag::err_duplicate_member) << II; in CheckFieldDecl()
13119 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckFieldDecl()
13143 diag::ext_union_member_of_reference_type : in CheckFieldDecl()
13144 diag::err_union_member_of_reference_type) in CheckFieldDecl()
13168 Diag(Loc, diag::warn_attribute_weak_on_field); in CheckFieldDecl()
13222 diag::warn_cxx98_compat_nontrivial_union_or_anon_struct_member : in CheckNontrivialField()
13223 diag::err_illegal_union_or_anon_struct_member) in CheckNontrivialField()
13277 Diag(Loc, diag::err_ivar_reference_type); in ActOnIvar()
13283 Diag(Loc, diag::err_typecheck_ivar_variable_size); in ActOnIvar()
13309 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar()
13326 Diag(Loc, diag::err_duplicate_member) << II; in ActOnIvar()
13327 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnIvar()
13354 Diag(Loc, diag::warn_ivars_in_interface); in ActOnIvar()
13467 Diag(FD->getLocation(), diag::err_field_declared_as_function) in ActOnFields()
13484 ? diag::ext_flexible_array_union_ms in ActOnFields()
13486 ? diag::ext_flexible_array_union_gnu in ActOnFields()
13487 : diag::err_flexible_array_union; in ActOnFields()
13490 ? diag::ext_flexible_array_empty_aggregate_ms in ActOnFields()
13492 ? diag::ext_flexible_array_empty_aggregate_gnu in ActOnFields()
13494 ? diag::err_flexible_array_empty_aggregate in ActOnFields()
13507 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base) in ActOnFields()
13510 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member) in ActOnFields()
13520 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor) in ActOnFields()
13530 diag::err_field_incomplete)) { in ActOnFields()
13545 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct) in ActOnFields()
13550 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct) in ActOnFields()
13557 diag::err_abstract_type_in_decl, in ActOnFields()
13568 Diag(FD->getLocation(), diag::err_statically_allocated_object) in ActOnFields()
13589 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag) in ActOnFields()
13661 Diag(Record->getLocation(), diag::err_multiple_final_overriders) in ActOnFields()
13664 diag::note_overridden_virtual_function); in ActOnFields()
13669 Diag(OM->Method->getLocation(), diag::note_final_overrider) in ActOnFields()
13733 diag::warn_zero_size_struct_union_in_extern_c : in ActOnFields()
13734 diag::warn_zero_size_struct_union_compat) in ActOnFields()
13741 Diag(RecLoc, IsEmpty ? diag::ext_empty_struct_union : in ActOnFields()
13742 diag::ext_no_named_members_in_struct_union) in ActOnFields()
13784 diag::err_duplicate_ivar_declaration); in ActOnFields()
13785 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13792 diag::err_duplicate_ivar_declaration); in ActOnFields()
13793 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13898 Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy; in CheckEnumConstant()
13901 Diag(IdLoc, diag::err_enumerator_too_large) << EltTy; in CheckEnumConstant()
13919 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
13977 Diag(IdLoc, diag::err_enumerator_wrapped) in CheckEnumConstant()
13981 Diag(IdLoc, diag::ext_enumerator_increment_too_large) in CheckEnumConstant()
14001 Diag(IdLoc, diag::warn_enum_value_overflow); in CheckEnumConstant()
14005 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
14093 Diag(IdLoc, diag::err_redefinition_of_enumerator) << Id; in ActOnEnumConstant()
14095 Diag(IdLoc, diag::err_redefinition) << Id; in ActOnEnumConstant()
14096 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnEnumConstant()
14184 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation())) in CheckForDuplicateEnumValues()
14274 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values) in CheckForDuplicateEnumValues()
14282 S.Diag((*I)->getLocation(), diag::note_duplicate_element) in CheckForDuplicateEnumValues()
14429 Diag(Enum->getLocation(), diag::ext_enum_too_large); in ActOnEnumBody()
14544 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range) in ActOnEnumBody()
14588 ? diag::ext_module_import_not_at_top_level_noop in checkModuleImportContext()
14589 : diag::err_module_import_not_at_top_level_fatal) in checkModuleImportContext()
14592 diag::note_module_import_not_at_top_level) << DC; in checkModuleImportContext()
14594 S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) in checkModuleImportContext()
14596 S.Diag(ExternCLoc, diag::note_module_import_in_extern_c); in checkModuleImportContext()
14621 Diag(ImportLoc, diag::err_module_self_import) in ActOnModuleImport()
14624 Diag(ImportLoc, diag::err_module_import_in_implementation) in ActOnModuleImport()
14728 Diag(PrevDecl->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnPragmaRedefineExtname()