Lines Matching refs:diag

216   S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II;  in recoverFromTypeInKnownDependentBase()
358 PDiag(diag::err_unknown_type_or_class_name_suggest) in getTypeName()
479 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnDelayedDefaultTemplateArg()
574 diagnoseTypo(Corrected, PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName()
580 PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName()
586 PDiag(diag::err_unknown_nested_typename_suggest) in DiagnoseUnknownTypeName()
616 Diag(IILoc, diag::err_template_missing_args) << TplName; in DiagnoseUnknownTypeName()
618 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
629 Diag(IILoc, diag::err_unknown_typename) << II; in DiagnoseUnknownTypeName()
631 Diag(IILoc, diag::err_typename_nested_not_found) in DiagnoseUnknownTypeName()
634 unsigned DiagID = diag::err_typename_missing; in DiagnoseUnknownTypeName()
636 DiagID = diag::ext_typename_missing; in DiagnoseUnknownTypeName()
698 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
704 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
814 unsigned UnqualifiedDiag = diag::err_undeclared_var_use_suggest; in ClassifyName()
815 unsigned QualifiedDiag = diag::err_no_member_suggest; in ClassifyName()
822 UnqualifiedDiag = diag::err_no_template_suggest; in ClassifyName()
823 QualifiedDiag = diag::err_no_member_template_suggest; in ClassifyName()
828 UnqualifiedDiag = diag::err_unknown_typename_suggest; in ClassifyName()
829 QualifiedDiag = diag::err_unknown_nested_typename_suggest; in ClassifyName()
1551 DiagID = diag::warn_unused_exception_param; in DiagnoseUnusedDecl()
1553 DiagID = diag::warn_unused_label; in DiagnoseUnusedDecl()
1555 DiagID = diag::warn_unused_variable; in DiagnoseUnusedDecl()
1571 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel()
1632 diagnoseTypo(C, PDiag(diag::err_undef_interface_suggest) << Id); in getObjCInterfaceDecl()
1720 Diag(Loc, diag::warn_implicit_decl_requires_sysheader) in LazilyCreateBuiltin()
1727 Diag(Loc, diag::ext_implicit_lib_function_decl) in LazilyCreateBuiltin()
1731 !Diags.isIgnored(diag::ext_implicit_lib_function_decl, Loc)) in LazilyCreateBuiltin()
1732 Diag(Loc, diag::note_include_header_or_declare) in LazilyCreateBuiltin()
1869 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef) in isIncompatibleTypedef()
1872 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1882 Diag(New->getLocation(), diag::err_redefinition_different_typedef) in isIncompatibleTypedef()
1885 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1946 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeTypedefNameDecl()
1951 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2030 Diag(New->getLocation(), diag::err_redefinition) in MergeTypedefNameDecl()
2032 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2049 Diag(New->getLocation(), diag::ext_redefinition_of_typedef) in MergeTypedefNameDecl()
2051 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2150 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch) in mergeAlignedAttrs()
2153 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration); in mergeAlignedAttrs()
2166 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition) in mergeAlignedAttrs()
2168 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration) in mergeAlignedAttrs()
2298 ? diag::err_alias_after_tentative in checkNewAttributesAfterDef()
2299 : diag::err_redefinition; in checkNewAttributesAfterDef()
2301 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2335 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition) in checkNewAttributesAfterDef()
2337 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration) in checkNewAttributesAfterDef()
2346 diag::warn_attribute_precede_definition); in checkNewAttributesAfterDef()
2347 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2422 diag::err_carries_dependency_missing_on_first_decl) << 1/*Param*/; in mergeParamDeclAttributes()
2430 diag::note_carries_dependency_missing_first_decl) << 1/*Param*/; in mergeParamDeclAttributes()
2492 static std::pair<diag::kind, SourceLocation>
2494 diag::kind PrevDiag; in getNoteDiagForInvalidRedeclaration()
2497 PrevDiag = diag::note_previous_definition; in getNoteDiagForInvalidRedeclaration()
2499 PrevDiag = diag::note_previous_implicit_declaration; in getNoteDiagForInvalidRedeclaration()
2503 PrevDiag = diag::note_previous_declaration; in getNoteDiagForInvalidRedeclaration()
2557 Diag(New->getLocation(), diag::err_using_decl_friend); in MergeFunctionDecl()
2559 diag::note_using_decl_target); in MergeFunctionDecl()
2561 diag::note_using_decl) << 0; in MergeFunctionDecl()
2580 Diag(New->getLocation(), diag::err_using_decl_conflict_reverse); in MergeFunctionDecl()
2582 diag::note_using_decl_target); in MergeFunctionDecl()
2583 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0; in MergeFunctionDecl()
2588 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeFunctionDecl()
2590 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2599 diag::kind PrevDiag; in MergeFunctionDecl()
2614 Diag(New->getLocation(), diag::ext_static_non_static) << New; in MergeFunctionDecl()
2617 Diag(New->getLocation(), diag::err_static_non_static) << New; in MergeFunctionDecl()
2659 Diag(New->getLocation(), diag::err_cconv_change) in MergeFunctionDecl()
2666 Diag(First->getLocation(), diag::note_previous_declaration); in MergeFunctionDecl()
2681 Diag(New->getLocation(), diag::err_regparm_mismatch) in MergeFunctionDecl()
2684 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2695 Diag(New->getLocation(), diag::err_returns_retained_mismatch); in MergeFunctionDecl()
2696 Diag(OldLocation, diag::note_previous_declaration); in MergeFunctionDecl()
2757 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type) in MergeFunctionDecl()
2760 Diag(New->getLocation(), diag::err_ovl_diff_return_type) in MergeFunctionDecl()
2808 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member); in MergeFunctionDecl()
2820 NewDiag = diag::err_constructor_redeclared; in MergeFunctionDecl()
2822 NewDiag = diag::err_destructor_redeclared; in MergeFunctionDecl()
2824 NewDiag = diag::err_conv_function_redeclared; in MergeFunctionDecl()
2826 NewDiag = diag::err_member_redeclared; in MergeFunctionDecl()
2830 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation) in MergeFunctionDecl()
2846 diag::err_definition_of_implicitly_declared_member) in MergeFunctionDecl()
2852 diag::err_definition_of_explicitly_defaulted_member) in MergeFunctionDecl()
2864 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl); in MergeFunctionDecl()
2866 diag::note_noreturn_missing_first_decl); in MergeFunctionDecl()
2876 diag::err_carries_dependency_missing_on_first_decl) << 0/*Function*/; in MergeFunctionDecl()
2878 diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; in MergeFunctionDecl()
2906 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New; in MergeFunctionDecl()
2909 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeFunctionDecl()
3013 diag::ext_param_promoted_not_compatible_with_prototype) in MergeFunctionDecl()
3018 diag::note_previous_declaration); in MergeFunctionDecl()
3040 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New; in MergeFunctionDecl()
3041 Diag(OldLocation, diag::note_previous_builtin_declaration) in MergeFunctionDecl()
3058 PrevDiag = diag::note_previous_builtin_declaration; in MergeFunctionDecl()
3061 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName(); in MergeFunctionDecl()
3205 Diag(New->getLocation(), diag::err_redefinition_different_type) in MergeVarDeclTypes()
3207 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDeclTypes()
3272 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeVarDecl()
3275 diag::note_previous_definition); in MergeVarDecl()
3294 Diag(New->getLocation(), diag::err_duplicate_member) in MergeVarDecl()
3296 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeVarDecl()
3306 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName(); in MergeVarDecl()
3307 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3325 diag::kind PrevDiag; in MergeVarDecl()
3335 Diag(New->getLocation(), diag::ext_static_non_static) in MergeVarDecl()
3339 Diag(New->getLocation(), diag::err_static_non_static) in MergeVarDecl()
3359 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName(); in MergeVarDecl()
3367 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName(); in MergeVarDecl()
3373 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName(); in MergeVarDecl()
3386 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName(); in MergeVarDecl()
3393 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName(); in MergeVarDecl()
3396 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName(); in MergeVarDecl()
3403 Diag(New->getLocation(), diag::err_thread_thread_different_kind) in MergeVarDecl()
3414 Diag(New->getLocation(), diag::err_redefinition) << New; in MergeVarDecl()
3415 Diag(Def->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3421 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeVarDecl()
3511 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3519 Diag(tagLoc, diag::note_typedef_changes_linkage) in setTagNameForLinkagePurposes()
3568 diag::err_typecheck_invalid_restrict_not_pointer_noarg) in ParsedFreeStandingDeclSpec()
3576 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_tag) in ParsedFreeStandingDeclSpec()
3582 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_no_declarators); in ParsedFreeStandingDeclSpec()
3606 Diag(SS.getBeginLoc(), diag::err_standalone_class_nested_name_specifier) in ParsedFreeStandingDeclSpec()
3658 Diag(DS.getLocStart(), diag::ext_ms_anonymous_record) in ParsedFreeStandingDeclSpec()
3682 Diag(DS.getLocStart(), diag::ext_typedef_without_a_name) in ParsedFreeStandingDeclSpec()
3690 Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class) in ParsedFreeStandingDeclSpec()
3707 Diag(DS.getLocStart(), diag::ext_no_declarators) << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
3719 unsigned DiagID = diag::warn_standalone_specifier; in ParsedFreeStandingDeclSpec()
3721 DiagID = diag::ext_standalone_specifier; in ParsedFreeStandingDeclSpec()
3730 Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_nonmember); in ParsedFreeStandingDeclSpec()
3761 Diag(attrs->getLoc(), diag::warn_declspec_attribute_ignored) in ParsedFreeStandingDeclSpec()
3800 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration()
3828 = AnonRecord->isUnion() ? diag::err_anonymous_union_member_redecl in InjectAnonymousStructOrUnionMembers()
3829 : diag::err_anonymous_struct_member_redecl; in InjectAnonymousStructOrUnionMembers()
3929 S.Diag(DefaultInitLoc, diag::err_multiple_mem_union_initialization); in checkDuplicateDefaultInit()
3930 S.Diag(findDefaultInitializer(Parent), diag::note_previous_initializer) << 0; in checkDuplicateDefaultInit()
3953 Diag(Record->getLocation(), diag::ext_anonymous_union); in BuildAnonymousStructOrUnion()
3955 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct); in BuildAnonymousStructOrUnion()
3957 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct); in BuildAnonymousStructOrUnion()
3973 Diag(Record->getLocation(), diag::err_anonymous_union_not_static) in BuildAnonymousStructOrUnion()
3986 diag::err_anonymous_union_with_storage_spec) in BuildAnonymousStructOrUnion()
3999 Diag(DS.getConstSpecLoc(), diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4004 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4009 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4014 diag::ext_anonymous_struct_union_qualified) in BuildAnonymousStructOrUnion()
4032 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member) in BuildAnonymousStructOrUnion()
4056 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4060 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4069 diag::ext_anonymous_record_with_anonymous_type) in BuildAnonymousStructOrUnion()
4079 unsigned DK = diag::err_anonymous_record_bad_member; in BuildAnonymousStructOrUnion()
4081 DK = diag::err_anonymous_record_with_type; in BuildAnonymousStructOrUnion()
4083 DK = diag::err_anonymous_record_with_function; in BuildAnonymousStructOrUnion()
4085 DK = diag::err_anonymous_record_with_static; in BuildAnonymousStructOrUnion()
4089 DK == diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4090 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4110 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member) in BuildAnonymousStructOrUnion()
4140 Diag(Record->getLocation(), diag::err_mutable_nonmember); in BuildAnonymousStructOrUnion()
4244 diag::err_field_incomplete) || in BuildMicrosoftCAnonymousStruct()
4507 Diag(NameInfo.getLoc(), diag::err_member_name_of_class) << Name; in DiagnoseClassNameShadow()
4545 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification in diagnoseQualifiedDeclaration()
4546 : diag::err_member_extra_qualification) in diagnoseQualifiedDeclaration()
4550 Diag(Loc, diag::warn_namespace_member_extra_qualification) << Name; in diagnoseQualifiedDeclaration()
4559 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4562 Diag(Loc, diag::err_invalid_declarator_global_scope) in diagnoseQualifiedDeclaration()
4565 Diag(Loc, diag::err_invalid_declarator_in_function) in diagnoseQualifiedDeclaration()
4568 Diag(Loc, diag::err_invalid_declarator_in_block) in diagnoseQualifiedDeclaration()
4571 Diag(Loc, diag::err_invalid_declarator_scope) in diagnoseQualifiedDeclaration()
4579 Diag(Loc, diag::err_member_qualification) in diagnoseQualifiedDeclaration()
4603 Diag(Loc, diag::err_decltype_in_declarator) in diagnoseQualifiedDeclaration()
4620 diag::err_declarator_need_ident) in HandleDeclarator()
4648 diag::err_template_qualified_declarator_no_match) in HandleDeclarator()
4661 diag::err_member_def_undefined_record) in HandleDeclarator()
4789 Diag(D.getIdentifierLoc(), diag::err_template_typedef); in HandleDeclarator()
4966 diag::err_inline_non_function); in DiagnoseFunctionSpecifiers()
4970 diag::err_virtual_non_function); in DiagnoseFunctionSpecifiers()
4974 diag::err_explicit_non_function); in DiagnoseFunctionSpecifiers()
4978 diag::err_noreturn_non_function); in DiagnoseFunctionSpecifiers()
4986 Diag(D.getIdentifierLoc(), diag::err_qualified_typedef_declarator) in ActOnTypedefDeclarator()
4997 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnTypedefDeclarator()
5001 Diag(D.getName().StartLocation, diag::err_typedef_not_identifier) in ActOnTypedefDeclarator()
5039 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5043 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5045 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5047 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5050 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5173 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var) in inferObjCARCLifetime()
5190 Diag(var->getLocation(), diag::err_arc_thread_ownership) in inferObjCARCLifetime()
5207 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static); in checkAttributesAfterMerging()
5213 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static); in checkAttributesAfterMerging()
5224 S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD; in checkAttributesAfterMerging()
5234 S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data); in checkAttributesAfterMerging()
5242 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern) in checkAttributesAfterMerging()
5289 unsigned DiagID = JustWarn ? diag::warn_attribute_dll_redeclaration in checkDLLAttributeRedeclaration()
5290 : diag::err_attribute_dll_redeclaration; in checkDLLAttributeRedeclaration()
5294 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5319 diag::warn_redeclaration_without_attribute_prev_attribute_ignored) in checkDLLAttributeRedeclaration()
5321 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5322 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute); in checkDLLAttributeRedeclaration()
5331 diag::warn_dllimport_dropped_from_inline_function) in checkDLLAttributeRedeclaration()
5491 Diag(D.getIdentifierLoc(), diag::err_opencl_function_pointer_variable); in ActOnVariableDeclarator()
5502 Diag(D.getIdentifierLoc(), diag::err_opencl_half_declaration) << R; in ActOnVariableDeclarator()
5511 Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember); in ActOnVariableDeclarator()
5523 diag::warn_deprecated_register) in ActOnVariableDeclarator()
5529 Diag(D.getIdentifierLoc(), diag::err_bad_variable_name) in ActOnVariableDeclarator()
5541 Diag(D.getIdentifierLoc(), diag::err_typecheck_sclass_fscope); in ActOnVariableDeclarator()
5558 Diag(D.getIdentifierLoc(), diag::err_wrong_sampler_addressspace); in ActOnVariableDeclarator()
5567 Diag(D.getLocStart(), diag::err_event_t_global_var); in ActOnVariableDeclarator()
5572 Diag(D.getLocStart(), diag::err_event_t_addr_space_qual); in ActOnVariableDeclarator()
5602 diag::err_static_out_of_line) in ActOnVariableDeclarator()
5614 diag::err_storage_class_for_static_member) in ActOnVariableDeclarator()
5628 diag::err_static_data_member_not_allowed_in_local_class) in ActOnVariableDeclarator()
5636 ? diag::warn_cxx98_compat_static_data_member_in_union in ActOnVariableDeclarator()
5637 : diag::ext_static_data_member_in_union) << Name; in ActOnVariableDeclarator()
5641 diag::err_static_data_member_not_allowed_in_anon_struct) in ActOnVariableDeclarator()
5663 diag::err_template_variable_noparams) in ActOnVariableDeclarator()
5685 ? diag::warn_cxx11_compat_variable_template in ActOnVariableDeclarator()
5686 : diag::ext_variable_template); in ActOnVariableDeclarator()
5765 diag::err_thread_non_global) in ActOnVariableDeclarator()
5769 diag::err_thread_unsupported); in ActOnVariableDeclarator()
5788 diag::warn_static_local_in_extern_inline); in ActOnVariableDeclarator()
5795 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
5800 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
5804 Diag(NewVD->getLocation(), diag::err_module_private_local) in ActOnVariableDeclarator()
5849 Diag(E->getExprLoc(), diag::warn_asm_label_on_auto_decl) << Label; in ActOnVariableDeclarator()
5854 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
5865 Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label; in ActOnVariableDeclarator()
5867 Diag(D.getLocStart(), diag::err_asm_bad_register_type); in ActOnVariableDeclarator()
5918 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line) in ActOnVariableDeclarator()
5925 Diag(D.getIdentifierLoc(), diag::err_no_member) in ActOnVariableDeclarator()
6007 if (Diags.isIgnored(diag::warn_decl_shadow, R.getNameLoc())) in CheckShadow()
6074 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC; in CheckShadow()
6075 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration); in CheckShadow()
6080 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation())) in CheckShadow()
6159 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6161 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6222 Diag(NewVD->getLocation(), diag::err_statically_allocated_object) in CheckVariableDeclarationType()
6233 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl); in CheckVariableDeclarationType()
6243 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space); in CheckVariableDeclarationType()
6252 Diag(NewVD->getLocation(), diag::err_static_function_scope); in CheckVariableDeclarationType()
6260 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local); in CheckVariableDeclarationType()
6263 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local); in CheckVariableDeclarationType()
6286 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope) in CheckVariableDeclarationType()
6289 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage) in CheckVariableDeclarationType()
6292 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage) in CheckVariableDeclarationType()
6300 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckVariableDeclarationType()
6302 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage); in CheckVariableDeclarationType()
6307 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size); in CheckVariableDeclarationType()
6316 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type) in CheckVariableDeclarationType()
6324 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal); in CheckVariableDeclarationType()
6330 Diag(NewVD->getLocation(), diag::err_block_on_vm); in CheckVariableDeclarationType()
6337 diag::err_constexpr_var_non_literal)) { in CheckVariableDeclarationType()
6440 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function); in ReportOverrides()
6472 ReportOverrides(*this, diag::err_non_deleted_override, MD, OEK_Deleted); in AddOverriddenMethods()
6475 ReportOverrides(*this, diag::err_deleted_override, MD, OEK_NonDeleted); in AddOverriddenMethods()
6554 unsigned DiagMsg = IsLocalFriend ? diag::err_no_matching_local_friend in DiagnoseInvalidRedeclaration()
6555 : diag::err_member_decl_does_not_match; in DiagnoseInvalidRedeclaration()
6636 ? diag::err_no_matching_local_friend_suggest in DiagnoseInvalidRedeclaration()
6637 : diag::err_member_decl_does_not_match_suggest) in DiagnoseInvalidRedeclaration()
6670 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match in DiagnoseInvalidRedeclaration()
6671 : diag::note_local_decl_close_param_match) in DiagnoseInvalidRedeclaration()
6675 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match) in DiagnoseInvalidRedeclaration()
6679 IsMember ? diag::note_member_def_close_match in DiagnoseInvalidRedeclaration()
6680 : diag::note_local_decl_close_match); in DiagnoseInvalidRedeclaration()
6692 diag::err_typecheck_sclass_func); in getFunctionStorageClass()
6708 diag::err_static_block_func); in getFunctionStorageClass()
6760 diag::err_abstract_type_in_decl, SemaRef.AbstractReturnType)) in CreateNewFunctionDecl()
6799 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member); in CreateNewFunctionDecl()
6814 diag::err_conv_function_not_member); in CreateNewFunctionDecl()
6832 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type) in CreateNewFunctionDecl()
6918 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param); in checkIsValidOpenCLKernelParameter()
6926 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param); in checkIsValidOpenCLKernelParameter()
6940 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7012 diag::err_record_with_pointers_kernel_param) in checkIsValidOpenCLKernelParameter()
7016 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7019 S.Diag(PD->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7029 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7033 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here) in checkIsValidOpenCLKernelParameter()
7058 diag::err_invalid_thread) in ActOnFunctionDeclarator()
7142 Diag(NewFD->getLocation(), diag::err_destructor_template); in ActOnFunctionDeclarator()
7194 Diag(D.getIdentifierLoc(), diag::err_template_spec_decl_friend) in ActOnFunctionDeclarator()
7225 diag::err_virtual_non_function); in ActOnFunctionDeclarator()
7229 diag::err_virtual_out_of_class) in ActOnFunctionDeclarator()
7235 diag::err_virtual_member_function_template) in ActOnFunctionDeclarator()
7244 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual); in ActOnFunctionDeclarator()
7272 diag::err_inline_declaration_block_scope) << Name in ActOnFunctionDeclarator()
7285 diag::err_explicit_out_of_class) in ActOnFunctionDeclarator()
7292 diag::err_explicit_non_ctor_or_conv_function) in ActOnFunctionDeclarator()
7306 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor); in ActOnFunctionDeclarator()
7314 Diag(ModulePrivateLoc, diag::err_module_private_specialization) in ActOnFunctionDeclarator()
7368 diag::err_static_out_of_line) in ActOnFunctionDeclarator()
7471 Diag(NewFD->getLocation(), diag::err_vm_func_decl); in ActOnFunctionDeclarator()
7500 diag::err_opencl_return_value_with_address_space); in ActOnFunctionDeclarator()
7534 CC == CC_X86StdCall ? diag::warn_cconv_knr : diag::err_cconv_knr; in ActOnFunctionDeclarator()
7551 diag::ext_operator_new_delete_declared_inline) in ActOnFunctionDeclarator()
7571 Diag(D.getIdentifierLoc(), diag::err_function_template_partial_spec) in ActOnFunctionDeclarator()
7614 diag::ext_function_specialization_in_class : in ActOnFunctionDeclarator()
7615 diag::err_function_specialization_in_class) in ActOnFunctionDeclarator()
7631 diag::err_explicit_specialization_inconsistent_storage_class) in ActOnFunctionDeclarator()
7638 diag::ext_explicit_specialization_storage_class) in ActOnFunctionDeclarator()
7773 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration) in ActOnFunctionDeclarator()
7786 diag::err_attribute_overloadable_no_prototype) in ActOnFunctionDeclarator()
7841 Diag(D.getIdentifierLoc(), diag::err_static_kernel); in ActOnFunctionDeclarator()
7848 Diag(D.getIdentifierLoc(), diag::err_expected_kernel_void_return_type) in ActOnFunctionDeclarator()
7867 Diag(NewFD->getLocation(), diag::err_config_scalar_return); in ActOnFunctionDeclarator()
7955 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
7964 diag::note_attribute_overloadable_prev_overload); in CheckFunctionDeclaration()
7984 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
7987 diag::note_attribute_overloadable_prev_overload); in CheckFunctionDeclaration()
8030 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const) in CheckFunctionDeclaration()
8094 Diag(NewFD->getLocation(), diag::err_destructor_name); in CheckFunctionDeclaration()
8112 ReportOverrides(*this, diag::err_static_overrides_virtual, Method); in CheckFunctionDeclaration()
8161 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete) in CheckFunctionDeclaration()
8165 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R; in CheckFunctionDeclaration()
8181 ? diag::err_static_main : diag::warn_static_main) in CheckMain()
8184 Diag(DS.getInlineSpecLoc(), diag::err_inline_main) in CheckMain()
8189 Diag(NoreturnLoc, diag::ext_noreturn_main); in CheckMain()
8190 Diag(NoreturnLoc, diag::note_main_remove_noreturn) in CheckMain()
8194 Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_main) in CheckMain()
8200 Diag(FD->getLocation(), diag::err_opencl_no_main) in CheckMain()
8219 Diag(FD->getTypeSpecStartLoc(), diag::ext_main_returns_nonint); in CheckMain()
8222 Diag(RTRange.getBegin(), diag::note_main_change_return_type) in CheckMain()
8236 Diag(FD->getTypeSpecStartLoc(), diag::err_main_returns_nonint) in CheckMain()
8259 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams; in CheckMain()
8296 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i]; in CheckMain()
8303 Diag(FD->getLocation(), diag::warn_main_one_arg); in CheckMain()
8307 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMain()
8327 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMSVCRTEntryPoint()
8344 Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant) in CheckForConstantInitializer()
8637 unsigned diag; in HandleDeclRefExpr() local
8639 diag = diag::warn_uninit_self_reference_in_reference_init; in HandleDeclRefExpr()
8641 diag = diag::warn_static_self_reference_in_init; in HandleDeclRefExpr()
8645 diag = diag::warn_uninit_self_reference_in_init; in HandleDeclRefExpr()
8652 S.PDiag(diag) in HandleDeclRefExpr()
8703 Diag(Method->getLocation(), diag::err_member_function_initialization) in AddInitializerToDecl()
8713 Diag(RealDecl->getLocation(), diag::err_illegal_initializer); in AddInitializerToDecl()
8743 VDecl->isInitCapture() ? diag::err_init_capture_no_expression in AddInitializerToDecl()
8744 : diag::err_auto_var_init_no_expression) in AddInitializerToDecl()
8752 ? diag::err_init_capture_multiple_expressions in AddInitializerToDecl()
8753 : diag::err_auto_var_init_multiple_expressions) in AddInitializerToDecl()
8762 diag::err_auto_var_init_paren_braces) in AddInitializerToDecl()
8804 Diag(Loc, diag::warn_auto_var_is_id) in AddInitializerToDecl()
8825 diag::warn_auto_var_direct_list_init) in AddInitializerToDecl()
8832 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition); in AddInitializerToDecl()
8839 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init); in AddInitializerToDecl()
8852 diag::err_typecheck_decl_incomplete_type)) { in AddInitializerToDecl()
8859 diag::err_abstract_type_in_decl, in AddInitializerToDecl()
8866 Diag(VDecl->getLocation(), diag::err_redefinition) in AddInitializerToDecl()
8868 Diag(Def->getLocation(), diag::note_previous_definition); in AddInitializerToDecl()
8888 Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization) in AddInitializerToDecl()
8890 Diag(PrevInit->getInit()->getExprLoc(), diag::note_previous_initializer) << 0; in AddInitializerToDecl()
8906 Diag(VDecl->getLocation(), diag::err_local_cant_init); in AddInitializerToDecl()
9000 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, in AddInitializerToDecl()
9044 diag::ext_aggregate_init_not_constant) in AddInitializerToDecl()
9080 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const) in AddInitializerToDecl()
9091 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile); in AddInitializerToDecl()
9099 Diag(Loc, diag::ext_in_class_initializer_non_constant) in AddInitializerToDecl()
9104 Diag(Loc, diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9115 diag::ext_in_class_initializer_float_type_cxx11) in AddInitializerToDecl()
9118 diag::note_in_class_initializer_float_type_cxx11) in AddInitializerToDecl()
9121 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type) in AddInitializerToDecl()
9125 Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant) in AddInitializerToDecl()
9133 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type) in AddInitializerToDecl()
9139 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type) in AddInitializerToDecl()
9149 Diag(VDecl->getLocation(), diag::warn_extern_init); in AddInitializerToDecl()
9204 diag::err_typecheck_decl_incomplete_type)) { in ActOnInitializerError()
9211 diag::err_abstract_type_in_decl, in ActOnInitializerError()
9232 Diag(Var->getLocation(), diag::err_auto_var_requires_init) in ActOnUninitializedDecl()
9247 diag::err_constexpr_static_mem_var_requires_init) in ActOnUninitializedDecl()
9250 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl); in ActOnUninitializedDecl()
9260 Diag(Var->getLocation(), diag::err_opencl_constant_no_init); in ActOnUninitializedDecl()
9285 diag::err_typecheck_decl_incomplete_type)) in ActOnUninitializedDecl()
9291 diag::err_abstract_type_in_decl, in ActOnUninitializedDecl()
9296 Diag(Var->getLocation(), diag::warn_private_extern); in ActOnUninitializedDecl()
9297 Diag(Var->getLocation(), diag::note_private_extern); in ActOnUninitializedDecl()
9313 diag::err_illegal_decl_array_incomplete_type)) in ActOnUninitializedDecl()
9327 diag::ext_typecheck_decl_incomplete_type); in ActOnUninitializedDecl()
9341 diag::err_typecheck_incomplete_array_needs_initializer); in ActOnUninitializedDecl()
9349 Diag(Var->getLocation(), diag::err_reference_var_requires_init) in ActOnUninitializedDecl()
9367 diag::err_typecheck_decl_incomplete_type)) { in ActOnUninitializedDecl()
9377 diag::err_abstract_type_in_decl, in ActOnUninitializedDecl()
9440 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var); in ActOnCXXForRangeDecl()
9471 Diag(VD->getOuterLocStart(), diag::err_for_range_storage_class) in ActOnCXXForRangeDecl()
9536 !getDiagnostics().isIgnored(diag::warn_missing_variable_declarations, in CheckCompleteVariableDeclaration()
9544 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var; in CheckCompleteVariableDeclaration()
9553 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor); in CheckCompleteVariableDeclaration()
9555 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
9563 Diag(Culprit->getExprLoc(), diag::err_thread_dynamic_init) in CheckCompleteVariableDeclaration()
9566 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
9639 !getDiagnostics().isIgnored(diag::warn_global_constructor, in CheckCompleteVariableDeclaration()
9647 Diag(var->getLocation(), diag::warn_global_constructor) in CheckCompleteVariableDeclaration()
9658 diag::note_invalid_subexpr_in_const_expr) { in CheckCompleteVariableDeclaration()
9662 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
9722 ? diag::warn_attribute_dllimport_static_field_definition in FinalizeDeclaration()
9723 : diag::err_attribute_dllimport_static_field_definition); in FinalizeDeclaration()
9724 Diag(IA->getLocation(), diag::note_attribute); in FinalizeDeclaration()
9733 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD in FinalizeDeclaration()
9740 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr; in FinalizeDeclaration()
9770 diag::err_type_tag_for_datatype_not_ice) in FinalizeDeclaration()
9776 diag::err_type_tag_for_datatype_too_large) in FinalizeDeclaration()
9847 diag::err_auto_different_deductions) in BuildDeclaratorGroup()
9876 if (Diags.isIgnored(diag::warn_doc_param_not_found, in ActOnDocumentableDecls()
9878 Diags.isIgnored(diag::warn_unknown_comment_command_name, in ActOnDocumentableDecls()
9928 diag::err_invalid_storage_class_in_func_decl); in ActOnParamDeclarator()
9933 Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_thread) in ActOnParamDeclarator()
9936 Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnParamDeclarator()
9951 Diag(D.getIdentifierLoc(), diag::err_qualified_param_declarator) in ActOnParamDeclarator()
9962 Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name) in ActOnParamDeclarator()
9981 Diag(D.getIdentifierLoc(), diag::err_param_redefinition) << II; in ActOnParamDeclarator()
9982 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnParamDeclarator()
10017 Diag(New->getLocation(), diag::err_module_private_local) in ActOnParamDeclarator()
10023 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnParamDeclarator()
10053 Diag((*Param)->getLocation(), diag::warn_unused_parameter) in DiagnoseUnusedParameters()
10071 Diag(D->getLocation(), diag::warn_return_value_size) in DiagnoseSizeOfParametersAndReturnValue()
10083 Diag((*Param)->getLocation(), diag::warn_parameter_size) in DiagnoseSizeOfParametersAndReturnValue()
10106 NameLoc, diag::err_arc_array_param_no_ownership, T, false)); in CheckParameter()
10123 RequireNonAbstractType(NameLoc, T, diag::err_abstract_type_in_decl, in CheckParameter()
10132 diag::err_object_cannot_be_passed_returned_by_value) << 1 << T in CheckParameter()
10146 Diag(NameLoc, diag::err_arg_with_address_space); in CheckParameter()
10167 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared) in ActOnFinishKNRParamDeclarations()
10286 Diag(FD->getLocation(), diag::err_redefinition_extern_inline) in CheckForFunctionRedefinition()
10289 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName(); in CheckForFunctionRedefinition()
10291 Diag(Definition->getLocation(), diag::note_previous_definition); in CheckForFunctionRedefinition()
10382 Diag(FD->getLocation(), diag::err_builtin_definition) << FD; in ActOnStartOfFunctionDef()
10393 diag::err_func_def_incomplete_result)) in ActOnStartOfFunctionDef()
10460 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition); in ActOnStartOfFunctionDef()
10470 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container); in ActOnStartOfFunctionDef()
10562 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto) in ActOnFinishFunctionBody()
10593 Diag(FD->getLocation(), diag::ext_pure_function_definition); in ActOnFinishFunctionBody()
10623 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD; in ActOnFinishFunctionBody()
10633 diag::note_declaration_not_a_prototype) in ActOnFinishFunctionBody()
10678 Diag(MD->getLocEnd(), diag::warn_objc_missing_super_call) in ActOnFinishFunctionBody()
10703 diag::warn_objc_designated_init_missing_super_call); in ActOnFinishFunctionBody()
10705 diag::note_objc_designated_init_marked_here); in ActOnFinishFunctionBody()
10713 diag::warn_objc_secondary_init_missing_init_call); in ActOnFinishFunctionBody()
10767 Diag(S->getLocStart(), diag::err_non_asm_stmt_in_naked_function); in ActOnFinishFunctionBody()
10768 Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in ActOnFinishFunctionBody()
10822 Diag(Loc, diag::warn_use_out_of_scope_declaration) << ExternCPrev; in ImplicitlyDefineFunction()
10823 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration); in ImplicitlyDefineFunction()
10830 diag_id = diag::warn_builtin_unknown; in ImplicitlyDefineFunction()
10832 diag_id = diag::ext_implicit_function_decl; in ImplicitlyDefineFunction()
10834 diag_id = diag::warn_implicit_function_decl; in ImplicitlyDefineFunction()
10845 diagnoseTypo(Corrected, PDiag(diag::note_function_suggestion), in ImplicitlyDefineFunction()
11020 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
11065 Diag(UnderlyingLoc, diag::err_enum_invalid_underlying) << T; in CheckEnumUnderlyingType()
11077 Diag(EnumLoc, diag::err_enum_redeclare_scoped_mismatch) in CheckEnumRedeclaration()
11079 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11089 Diag(EnumLoc, diag::err_enum_redeclare_type_mismatch) in CheckEnumRedeclaration()
11091 Diag(Prev->getLocation(), diag::note_previous_declaration) in CheckEnumRedeclaration()
11096 Diag(EnumLoc, diag::err_enum_redeclare_fixed_mismatch) in CheckEnumRedeclaration()
11098 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11163 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
11182 Diag(NewTagLoc, diag::warn_struct_class_previous_tag_mismatch) in isAcceptableTagRedeclaration()
11186 Diag(I->getInnerLocStart(), diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
11204 Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch) in isAcceptableTagRedeclaration()
11207 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
11211 Diag(NewTagLoc, diag::note_struct_class_suggestion) in isAcceptableTagRedeclaration()
11310 Diag(KWLoc, diag::err_enum_template); in ActOnTag()
11333 Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams) in ActOnTag()
11399 Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec) in ActOnTag()
11429 Diag(NameLoc, diag::err_not_tag_in_scope) in ActOnTag()
11490 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace) in ActOnTag()
11641 Diag(KWLoc, diag::err_use_with_wrong_tag) in ActOnTag()
11646 Diag(KWLoc, diag::err_use_with_wrong_tag) << Name; in ActOnTag()
11647 Diag(PrevTagDecl->getLocation(), diag::note_previous_use); in ActOnTag()
11666 Diag(ScopedEnumKWLoc, diag::err_enum_class_reference) in ActOnTag()
11692 Diag(NameLoc, diag::ext_member_redeclared); in ActOnTag()
11693 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration); in ActOnTag()
11745 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name; in ActOnTag()
11747 Diag(NameLoc, diag::err_redefinition) << Name; in ActOnTag()
11748 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
11761 Diag(NameLoc, diag::err_nested_redefinition) << Name; in ActOnTag()
11763 diag::note_previous_definition); in ActOnTag()
11810 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind; in ActOnTag()
11811 Diag(PrevDecl->getLocation(), diag::note_declared_at); in ActOnTag()
11825 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind; in ActOnTag()
11826 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
11834 Diag(NameLoc, diag::err_tag_definition_of_typedef) in ActOnTag()
11836 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
11843 Diag(NameLoc, diag::err_redefinition_different_kind) << Name; in ActOnTag()
11844 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnTag()
11887 Diag(Loc, diag::ext_forward_ref_enum_def) in ActOnTag()
11889 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
11891 unsigned DiagID = diag::ext_forward_ref_enum; in ActOnTag()
11893 DiagID = diag::ext_ms_forward_ref_enum; in ActOnTag()
11895 DiagID = diag::err_forward_ref_enum; in ActOnTag()
11935 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier) in ActOnTag()
11982 Diag(New->getLocation(), diag::err_module_private_specialization) in ActOnTag()
12006 Diag(Loc, diag::err_type_defined_in_param_type) in ActOnTag()
12011 Diag(Loc, diag::warn_decl_in_param_list) << Context.getTagDeclType(New); in ActOnTag()
12218 if (RequireCompleteType(FieldLoc, FieldTy, diag::err_field_incomplete)) in VerifyBitField()
12221 return Diag(FieldLoc, diag::err_not_integral_type_bitfield) in VerifyBitField()
12223 return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield) in VerifyBitField()
12245 return Diag(FieldLoc, diag::err_bitfield_has_zero_width) << FieldName; in VerifyBitField()
12249 return Diag(FieldLoc, diag::err_bitfield_has_negative_width) in VerifyBitField()
12251 return Diag(FieldLoc, diag::err_anon_bitfield_has_negative_width) in VerifyBitField()
12261 return Diag(FieldLoc, diag::err_bitfield_width_exceeds_type_size) in VerifyBitField()
12265 return Diag(FieldLoc, diag::err_anon_bitfield_width_exceeds_type_size) in VerifyBitField()
12270 Diag(FieldLoc, diag::warn_bitfield_width_exceeds_type_size) in VerifyBitField()
12274 Diag(FieldLoc, diag::warn_anon_bitfield_width_exceeds_type_size) in VerifyBitField()
12318 Diag(Loc, diag::err_field_with_address_space); in HandleField()
12325 Diag(Loc, diag::err_event_t_struct_field); in HandleField()
12333 diag::err_invalid_thread) in HandleField()
12422 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) { in CheckFieldDecl()
12438 Diag(Loc, diag::err_opencl_bitfields); in CheckFieldDecl()
12453 Diag(Loc, diag::warn_illegal_constant_array_size); in CheckFieldDecl()
12458 Diag(Loc, diag::err_typecheck_negative_array_size); in CheckFieldDecl()
12460 Diag(Loc, diag::err_array_too_large) in CheckFieldDecl()
12463 Diag(Loc, diag::err_typecheck_field_variable_size); in CheckFieldDecl()
12470 diag::err_abstract_type_in_decl, in CheckFieldDecl()
12490 DiagID = getLangOpts().MSVCCompat ? diag::ext_mutable_reference in CheckFieldDecl()
12491 : diag::err_mutable_reference; in CheckFieldDecl()
12493 DiagID = diag::err_mutable_const; in CheckFieldDecl()
12500 if (DiagID != diag::ext_mutable_reference) { in CheckFieldDecl()
12519 Diag(Loc, diag::err_duplicate_member) << II; in CheckFieldDecl()
12520 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckFieldDecl()
12544 diag::ext_union_member_of_reference_type : in CheckFieldDecl()
12545 diag::err_union_member_of_reference_type) in CheckFieldDecl()
12569 Diag(Loc, diag::warn_attribute_weak_on_field); in CheckFieldDecl()
12624 diag::warn_cxx98_compat_nontrivial_union_or_anon_struct_member : in CheckNontrivialField()
12625 diag::err_illegal_union_or_anon_struct_member) in CheckNontrivialField()
12679 Diag(Loc, diag::err_ivar_reference_type); in ActOnIvar()
12685 Diag(Loc, diag::err_typecheck_ivar_variable_size); in ActOnIvar()
12711 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar()
12728 Diag(Loc, diag::err_duplicate_member) << II; in ActOnIvar()
12729 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnIvar()
12756 Diag(Loc, diag::warn_ivars_in_interface); in ActOnIvar()
12869 Diag(FD->getLocation(), diag::err_field_declared_as_function) in ActOnFields()
12886 ? diag::ext_flexible_array_union_ms in ActOnFields()
12888 ? diag::ext_flexible_array_union_gnu in ActOnFields()
12889 : diag::err_flexible_array_union; in ActOnFields()
12892 ? diag::ext_flexible_array_empty_aggregate_ms in ActOnFields()
12894 ? diag::ext_flexible_array_empty_aggregate_gnu in ActOnFields()
12896 ? diag::err_flexible_array_empty_aggregate in ActOnFields()
12909 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base) in ActOnFields()
12912 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member) in ActOnFields()
12922 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor) in ActOnFields()
12932 diag::err_field_incomplete)) { in ActOnFields()
12947 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct) in ActOnFields()
12952 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct) in ActOnFields()
12959 diag::err_abstract_type_in_decl, in ActOnFields()
12970 Diag(FD->getLocation(), diag::err_statically_allocated_object) in ActOnFields()
12992 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag) in ActOnFields()
13064 Diag(Record->getLocation(), diag::err_multiple_final_overriders) in ActOnFields()
13067 diag::note_overridden_virtual_function); in ActOnFields()
13072 Diag(OM->Method->getLocation(), diag::note_final_overrider) in ActOnFields()
13136 diag::warn_zero_size_struct_union_in_extern_c : in ActOnFields()
13137 diag::warn_zero_size_struct_union_compat) in ActOnFields()
13144 Diag(RecLoc, IsEmpty ? diag::ext_empty_struct_union : in ActOnFields()
13145 diag::ext_no_named_members_in_struct_union) in ActOnFields()
13187 diag::err_duplicate_ivar_declaration); in ActOnFields()
13188 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13195 diag::err_duplicate_ivar_declaration); in ActOnFields()
13196 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13301 Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy; in CheckEnumConstant()
13304 Diag(IdLoc, diag::err_enumerator_too_large) << EltTy; in CheckEnumConstant()
13322 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
13380 Diag(IdLoc, diag::err_enumerator_wrapped) in CheckEnumConstant()
13384 Diag(IdLoc, diag::ext_enumerator_increment_too_large) in CheckEnumConstant()
13404 Diag(IdLoc, diag::warn_enum_value_overflow); in CheckEnumConstant()
13408 Diag(IdLoc, diag::ext_enum_value_not_int) in CheckEnumConstant()
13456 Diag(IdLoc, diag::err_redefinition_of_enumerator) << Id; in ActOnEnumConstant()
13458 Diag(IdLoc, diag::err_redefinition) << Id; in ActOnEnumConstant()
13459 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnEnumConstant()
13474 Diag(IdLoc, diag::err_member_name_of_class) << Id; in ActOnEnumConstant()
13562 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation())) in CheckForDuplicateEnumValues()
13652 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values) in CheckForDuplicateEnumValues()
13660 S.Diag((*I)->getLocation(), diag::note_duplicate_element) in CheckForDuplicateEnumValues()
13821 Diag(Enum->getLocation(), diag::ext_enum_too_large); in ActOnEnumBody()
13945 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range) in ActOnEnumBody()
13981 S.Diag(ImportLoc, diag::err_module_import_in_extern_c) in checkModuleImportContext()
13983 S.Diag(LSD->getLocStart(), diag::note_module_import_in_extern_c); in checkModuleImportContext()
13996 S.Diag(ImportLoc, diag::err_module_import_not_at_top_level) in checkModuleImportContext()
13999 diag::note_module_import_not_at_top_level) in checkModuleImportContext()
14019 Diag(ImportLoc, diag::err_module_self_import) in ActOnModuleImport()
14022 Diag(ImportLoc, diag::err_module_import_in_implementation) in ActOnModuleImport()