Lines Matching refs:diag

96                      diag::err_param_default_argument_references_param)  in VisitDeclRefExpr()
104 diag::err_param_default_argument_references_local) in VisitDeclRefExpr()
117 diag::err_param_default_argument_references_this) in VisitCXXThisExpr()
146 diag::err_lambda_capture_default_arg); in VisitLambdaExpr()
253 diag::err_typecheck_decl_incomplete_type)) { in SetParamDefaultArgument()
309 Diag(EqualLoc, diag::err_param_default_argument) in ActOnParamDefaultArgument()
325 Diag(EqualLoc, diag::err_param_default_argument_on_parameter_pack) in ActOnParamDefaultArgument()
406 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
411 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
488 diag::err_param_default_argument_redefinition; in MergeCXXFunctionDecl()
503 DiagDefaultParamID = diag::ext_param_default_argument_redefinition; in MergeCXXFunctionDecl()
526 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl()
544 diag::err_param_default_argument_template_redecl) in MergeCXXFunctionDecl()
546 Diag(Old->getLocation(), diag::note_template_prev_declaration) in MergeCXXFunctionDecl()
560 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg) in MergeCXXFunctionDecl()
586 diag::err_param_default_argument_member_template_redecl) in MergeCXXFunctionDecl()
603 Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special) in MergeCXXFunctionDecl()
605 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeCXXFunctionDecl()
614 Diag(New->getLocation(), diag::err_constexpr_redecl_mismatch) in MergeCXXFunctionDecl()
616 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeCXXFunctionDecl()
623 Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New; in MergeCXXFunctionDecl()
624 Diag(Def->getLocation(), diag::note_previous_definition); in MergeCXXFunctionDecl()
634 Diag(New->getLocation(), diag::err_friend_decl_with_def_arg_redeclared); in MergeCXXFunctionDecl()
635 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeCXXFunctionDecl()
715 diag::err_param_default_argument_missing_name) in CheckCXXDefaultArguments()
719 diag::err_param_default_argument_missing); in CheckCXXDefaultArguments()
753 diag::err_constexpr_non_literal_param, in CheckConstexprParameterTypes()
790 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base) in CheckConstexprFunctionDecl()
795 diag::note_constexpr_virtual_base_here) << I.getSourceRange(); in CheckConstexprFunctionDecl()
807 Diag(NewFD->getLocation(), diag::err_constexpr_virtual); in CheckConstexprFunctionDecl()
816 diag::note_overridden_virtual_function); in CheckConstexprFunctionDecl()
824 diag::err_constexpr_non_literal_return)) in CheckConstexprFunctionDecl()
866 SemaRef.Diag(TL.getBeginLoc(), diag::err_constexpr_vla) in CheckConstexprDeclStmt()
880 ? diag::warn_cxx11_compat_constexpr_type_definition in CheckConstexprDeclStmt()
881 : diag::ext_constexpr_type_definition) in CheckConstexprDeclStmt()
900 diag::err_constexpr_local_var_static) in CheckConstexprDeclStmt()
908 diag::err_constexpr_local_var_non_literal_type, in CheckConstexprDeclStmt()
914 diag::err_constexpr_local_var_no_init) in CheckConstexprDeclStmt()
921 ? diag::warn_cxx11_compat_constexpr_local_var in CheckConstexprDeclStmt()
922 : diag::ext_constexpr_local_var) in CheckConstexprDeclStmt()
936 SemaRef.Diag(DS->getLocStart(), diag::err_constexpr_body_invalid_stmt) in CheckConstexprDeclStmt()
975 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init); in CheckConstexprCtorInitializer()
978 SemaRef.Diag(Field->getLocation(), diag::note_constexpr_ctor_missing_init); in CheckConstexprCtorInitializer()
1101 SemaRef.Diag(S->getLocStart(), diag::err_constexpr_body_invalid_stmt) in CheckConstexprFunctionStmt()
1121 Diag(Body->getLocStart(), diag::err_constexpr_function_try_block) in CheckConstexprFunctionBody()
1140 ? diag::warn_cxx11_compat_constexpr_body_invalid_stmt in CheckConstexprFunctionBody()
1141 : diag::ext_constexpr_body_invalid_stmt) in CheckConstexprFunctionBody()
1156 Diag(Dcl->getLocation(), diag::err_constexpr_union_ctor_no_init); in CheckConstexprFunctionBody()
1208 OK ? diag::warn_cxx11_compat_constexpr_body_no_return in CheckConstexprFunctionBody()
1209 : diag::err_constexpr_body_no_return); in CheckConstexprFunctionBody()
1215 ? diag::warn_cxx11_compat_constexpr_body_multiple_return in CheckConstexprFunctionBody()
1216 : diag::ext_constexpr_body_multiple_return); in CheckConstexprFunctionBody()
1218 Diag(ReturnStmts[I], diag::note_constexpr_body_previous_return); in CheckConstexprFunctionBody()
1234 Diag(Dcl->getLocation(), diag::ext_constexpr_function_never_constant_expr) in CheckConstexprFunctionBody()
1360 S.Diag(BaseLoc, diag::warn_attribute_dll_instantiated_base_class) in propagateDLLAttrToBaseClassTemplate()
1362 S.Diag(ClassAttr->getLocation(), diag::note_attribute); in propagateDLLAttrToBaseClassTemplate()
1365 diag::note_template_class_explicit_specialization_was_here) in propagateDLLAttrToBaseClassTemplate()
1369 diag::note_template_class_instantiation_was_here) in propagateDLLAttrToBaseClassTemplate()
1389 Diag(Class->getLocation(), diag::err_base_clause_on_union) in CheckBaseSpecifier()
1396 Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs) in CheckBaseSpecifier()
1411 Diag(BaseLoc, diag::err_circular_inheritance) in CheckBaseSpecifier()
1415 Diag(BaseDecl->getLocation(), diag::note_previous_decl) in CheckBaseSpecifier()
1429 Diag(BaseLoc, diag::err_base_must_be_class) << SpecifierRange; in CheckBaseSpecifier()
1436 Diag(BaseLoc, diag::err_union_as_base_class) << SpecifierRange; in CheckBaseSpecifier()
1455 diag::err_incomplete_base_class, SpecifierRange)) { in CheckBaseSpecifier()
1475 Diag(BaseLoc, diag::err_base_class_has_flexible_array_member) in CheckBaseSpecifier()
1484 Diag(BaseLoc, diag::err_class_marked_final_used_as_base) in CheckBaseSpecifier()
1487 Diag(CXXBaseDecl->getLocation(), diag::note_entity_declared_at) in CheckBaseSpecifier()
1533 ? diag::warn_unknown_attribute_ignored in ActOnBaseSpecifier()
1534 : diag::err_base_specifier_attribute) in ActOnBaseSpecifier()
1613 diag::err_duplicate_base_class) in AttachBaseSpecifiers()
1638 Diag(KnownBase->getLocStart(), diag::err_invalid_base_in_interface) in AttachBaseSpecifiers()
1667 Diag(Bases[idx]->getLocStart (), diag::warn_inaccessible_base_class) in AttachBaseSpecifiers()
1835 : diag::err_upcast_to_inaccessible_base, in CheckDerivedToBaseConversion()
1836 diag::err_ambiguous_derived_to_base_conv, in CheckDerivedToBaseConversion()
1915 diag::override_keyword_hides_virtual_member_function) in CheckOverrideControl()
1919 diag::override_keyword_hides_virtual_member_function) in CheckOverrideControl()
1934 diag::override_keyword_only_allowed_on_virtual_member_functions) in CheckOverrideControl()
1940 diag::override_keyword_only_allowed_on_virtual_member_functions) in CheckOverrideControl()
1955 Diag(MD->getLocation(), diag::err_function_marked_override_not_overriding) in CheckOverrideControl()
1976 Diag(MD->getLocation(), diag::warn_function_marked_not_override_overriding) in DiagnoseAbsenceOfOverrideControl()
1979 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()
1992 Diag(New->getLocation(), diag::err_final_function_overridden) in CheckIfOverriddenFunctionIsMarkedFinal()
1995 Diag(Old->getLocation(), diag::note_overridden_virtual_function); in CheckIfOverriddenFunctionIsMarkedFinal()
2077 Diag(Loc, diag::err_invalid_member_in_interface) in ActOnCXXMemberDeclarator()
2080 Diag(Loc, diag::err_invalid_member_in_interface) in ActOnCXXMemberDeclarator()
2098 Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_function); in ActOnCXXMemberDeclarator()
2107 diag::err_storageclass_invalid_for_member); in ActOnCXXMemberDeclarator()
2118 Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr_member); in ActOnCXXMemberDeclarator()
2157 Diag(Loc, diag::err_bad_variable_name) in ActOnCXXMemberDeclarator()
2170 Diag(D.getIdentifierLoc(), diag::err_template_member) in ActOnCXXMemberDeclarator()
2177 diag::err_template_member_noparams) in ActOnCXXMemberDeclarator()
2195 Diag(D.getIdentifierLoc(), diag::err_member_qualification) in ActOnCXXMemberDeclarator()
2229 Diag(Loc, diag::err_static_not_bitfield) in ActOnCXXMemberDeclarator()
2233 Diag(Loc, diag::err_typedef_not_bitfield) in ActOnCXXMemberDeclarator()
2238 Diag(Loc, diag::err_not_integral_type_bitfield) in ActOnCXXMemberDeclarator()
2277 if (!Diags.isIgnored(diag::warn_unused_private_field, FD->getLocation())) { in ActOnCXXMemberDeclarator()
2408 S.Diag(FieldME->getExprLoc(), diag::warn_base_class_is_uninit) in HandleMemberExpr()
2430 unsigned diag = IsReference in HandleMemberExpr() local
2431 ? diag::warn_reference_field_is_uninit in HandleMemberExpr()
2432 : diag::warn_field_is_uninit; in HandleMemberExpr()
2433 S.Diag(FieldME->getExprLoc(), diag) << FoundVD; in HandleMemberExpr()
2436 diag::note_uninit_in_this_constructor) in HandleMemberExpr()
2638 if (SemaRef.getDiagnostics().isIgnored(diag::warn_field_is_uninit, in DiagnoseUninitializedFields()
2916 Diag(EllipsisLoc, diag::err_pack_expansion_member_init) in BuildMemInitializer()
2975 PDiag(diag::err_mem_init_not_member_or_class_suggest) in BuildMemInitializer()
2988 PDiag(diag::err_mem_init_not_member_or_class_suggest) in BuildMemInitializer()
2995 diag::note_base_class_specified_here) in BuildMemInitializer()
3005 Diag(IdLoc, diag::err_mem_init_not_member_or_class) in BuildMemInitializer()
3062 IsPointer ? diag::warn_init_ptr_member_to_parameter_addr in CheckForDanglingReferenceOrPointer()
3063 : diag::warn_bind_ref_member_to_parameter) in CheckForDanglingReferenceOrPointer()
3070 S.Diag(Member->getLocation(), diag::note_ref_or_ptr_member_declared_here) in CheckForDanglingReferenceOrPointer()
3155 return Diag(NameLoc, diag::err_delegating_ctor) in BuildDelegatingInitializer()
3157 Diag(NameLoc, diag::warn_cxx98_compat_delegating_ctor); in BuildDelegatingInitializer()
3214 return Diag(BaseLoc, diag::err_base_init_does_not_name_class) in BuildBaseInitializer()
3229 Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs) in BuildBaseInitializer()
3267 return Diag(BaseLoc, diag::err_not_direct_base_or_virtual) in BuildBaseInitializer()
3287 return Diag(BaseLoc, diag::err_base_init_direct_and_virtual) in BuildBaseInitializer()
3659 diag::err_uninitialized_member_in_ctor) in BuildImplicitMemberInitializer()
3663 SemaRef.Diag(Field->getLocation(), diag::note_declared_at); in BuildImplicitMemberInitializer()
3669 diag::err_uninitialized_member_in_ctor) in BuildImplicitMemberInitializer()
3673 SemaRef.Diag(Field->getLocation(), diag::note_declared_at); in BuildImplicitMemberInitializer()
3961 Diag(Value->getSourceLocation(), diag::warn_abstract_vbase_init_ignored) in SetCtorInitializers()
4100 if (!SemaRef.Diags.isIgnored(diag::warn_initializer_out_of_order, in DiagnoseBaseOrMemInitializerOrder()
4155 diag::warn_initializer_out_of_order); in DiagnoseBaseOrMemInitializerOrder()
4191 diag::err_multiple_mem_initialization) in CheckRedundantInit()
4198 diag::err_multiple_base_initialization) in CheckRedundantInit()
4202 S.Diag(PrevInit->getSourceLocation(), diag::note_previous_initializer) in CheckRedundantInit()
4223 diag::err_multiple_mem_union_initialization) in CheckRedundantUnionInit()
4226 S.Diag(En.second->getSourceLocation(), diag::note_previous_initializer) in CheckRedundantUnionInit()
4260 Diag(ColonLoc, diag::err_only_constructors_take_base_inits); in ActOnMemInitializers()
4293 diag::err_delegating_initializer_alone) in ActOnMemInitializers()
4353 PDiag(diag::err_access_dtor_field) in MarkBaseAndMemberDestructorsReferenced()
4384 PDiag(diag::err_access_dtor_base) in MarkBaseAndMemberDestructorsReferenced()
4413 PDiag(diag::err_access_dtor_vbase) in MarkBaseAndMemberDestructorsReferenced()
4419 diag::err_access_dtor_vbase, 0, ClassDecl->getLocation(), in MarkBaseAndMemberDestructorsReferenced()
4542 diag::note_pure_virtual_function) in DiagnoseAbstractType()
4651 Info.S.Diag(Ctx->getLocation(), diag::err_array_of_abstract_type) in CheckPolymorphic()
4654 Info.S.Diag(Ctx->getLocation(), diag::err_abstract_type_in_decl) in CheckPolymorphic()
4736 S.Diag(Class->getLocation(), diag::err_attribute_dll_not_extern) in checkDLLAttribute()
4752 diag::err_attribute_dll_member_of_dll_class) in checkDLLAttribute()
4754 S.Diag(ClassAttr->getLocation(), diag::note_previous_attribute); in checkDLLAttribute()
4838 S.Diag(ClassAttr->getLocation(), diag::note_due_to_dllexported_class) in checkDLLAttribute()
4877 Diag(Record->getLocation(), diag::warn_no_constructor_for_refconst) in CheckCompletedCXXClass()
4882 Diag(F->getLocation(), diag::note_refconst_member_not_initialized) in CheckCompletedCXXClass()
4904 Diag(D->getLocation(), diag::err_member_name_of_class) in CheckCompletedCXXClass()
4917 diag::warn_non_virtual_dtor) << Context.getRecordType(Record); in CheckCompletedCXXClass()
4922 Diag(Record->getLocation(), diag::warn_abstract_final_class) in CheckCompletedCXXClass()
4977 Diag(Record->getLocation(), diag::warn_cxx_ms_struct); in CheckCompletedCXXClass()
5216 Diag(MD->getLocation(), diag::err_defaulted_special_member_params) in CheckExplicitlyDefaultedSpecialMember()
5220 Diag(MD->getLocation(), diag::err_defaulted_special_member_variadic) in CheckExplicitlyDefaultedSpecialMember()
5240 Diag(MD->getLocation(), diag::err_defaulted_special_member_return_type) in CheckExplicitlyDefaultedSpecialMember()
5247 Diag(MD->getLocation(), diag::err_defaulted_special_member_quals) in CheckExplicitlyDefaultedSpecialMember()
5263 diag::err_defaulted_special_member_volatile_param) << CSM; in CheckExplicitlyDefaultedSpecialMember()
5270 diag::err_defaulted_special_member_copy_const_param) in CheckExplicitlyDefaultedSpecialMember()
5275 diag::err_defaulted_special_member_move_const_param) in CheckExplicitlyDefaultedSpecialMember()
5284 Diag(MD->getLocation(), diag::err_defaulted_copy_assign_not_ref); in CheckExplicitlyDefaultedSpecialMember()
5301 Diag(MD->getLocStart(), diag::err_incorrect_defaulted_constexpr) << CSM; in CheckExplicitlyDefaultedSpecialMember()
5347 Diag(MD->getLocation(), diag::err_out_of_line_default_deletes) << CSM; in CheckExplicitlyDefaultedSpecialMember()
5380 PDiag(diag::err_incorrect_defaulted_exception_spec) in CheckExplicitlyDefaultedMemberExceptionSpec()
5529 diag::note_deleted_special_member_class_subobject) in shouldDeleteForSubobjectCall()
5535 diag::note_deleted_special_member_class_subobject) in shouldDeleteForSubobjectCall()
5607 S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field) in shouldDeleteForField()
5619 S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field) in shouldDeleteForField()
5631 S.Diag(FD->getLocation(), diag::note_deleted_copy_ctor_rvalue_reference) in shouldDeleteForField()
5639 S.Diag(FD->getLocation(), diag::note_deleted_assign_field) in shouldDeleteForField()
5647 S.Diag(FD->getLocation(), diag::note_deleted_assign_field) in shouldDeleteForField()
5678 diag::note_deleted_default_ctor_all_const) in shouldDeleteForField()
5706 diag::note_deleted_default_ctor_all_const) in shouldDeleteForAllConstMembers()
5732 Diag(RD->getLocation(), diag::note_lambda_decl); in ShouldDeleteSpecialMember()
5781 diag::note_deleted_copy_user_declared_move) in ShouldDeleteSpecialMember()
5801 Diag(RD->getLocation(), diag::note_deleted_dtor_no_operator_delete); in ShouldDeleteSpecialMember()
6011 S.Diag(SubobjLoc, diag::note_nontrivial_no_def_ctor) in checkTrivialSubobjectCall()
6014 S.Diag(CD->getLocation(), diag::note_user_declared_ctor); in checkTrivialSubobjectCall()
6016 S.Diag(SubobjLoc, diag::note_nontrivial_no_copy) in checkTrivialSubobjectCall()
6020 S.Diag(Selected->getLocation(), diag::note_nontrivial_user_provided) in checkTrivialSubobjectCall()
6023 S.Diag(SubobjLoc, diag::note_nontrivial_user_provided) in checkTrivialSubobjectCall()
6025 S.Diag(Selected->getLocation(), diag::note_declared_at); in checkTrivialSubobjectCall()
6029 S.Diag(SubobjLoc, diag::note_nontrivial_subobject) in checkTrivialSubobjectCall()
6065 S.Diag(FI->getLocation(), diag::note_nontrivial_in_class_init) << FI; in checkTrivialClassMembers()
6076 S.Diag(FI->getLocation(), diag::note_nontrivial_objc_ownership) in checkTrivialClassMembers()
6128 Diag(Param0->getLocation(), diag::note_nontrivial_param_type) in SpecialMemberIsTrivial()
6145 Diag(Param0->getLocation(), diag::note_nontrivial_param_type) in SpecialMemberIsTrivial()
6160 diag::note_nontrivial_default_arg) in SpecialMemberIsTrivial()
6166 Diag(MD->getLocation(), diag::note_nontrivial_variadic); in SpecialMemberIsTrivial()
6204 Diag(MD->getLocation(), diag::note_nontrivial_virtual_dtor) << RD; in SpecialMemberIsTrivial()
6220 Diag(BS.getLocStart(), diag::note_nontrivial_has_virtual) << RD << 1; in SpecialMemberIsTrivial()
6228 Diag(MLoc, diag::note_nontrivial_has_virtual) << RD << 0; in SpecialMemberIsTrivial()
6358 diag::note_hidden_overloaded_virtual_declared_here) << overloadedMD; in NoteHiddenVirtualMethods()
6370 if (Diags.isIgnored(diag::warn_overloaded_virtual, MD->getLocation())) in DiagnoseHiddenVirtualMethods()
6376 Diag(MD->getLocation(), diag::warn_overloaded_virtual) in DiagnoseHiddenVirtualMethods()
6397 Diag(l->getLoc(), diag::warn_attribute_after_definition_ignored) << in ActOnFinishCXXMemberSpecification()
6620 Diag(D.getIdentifierLoc(), diag::err_constructor_cannot_be) in CheckConstructorDeclarator()
6627 Diag(D.getIdentifierLoc(), diag::err_constructor_cannot_be) in CheckConstructorDeclarator()
6636 diag::err_constructor_return_type, TypeQuals, SourceLocation(), in CheckConstructorDeclarator()
6646 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_constructor) in CheckConstructorDeclarator()
6649 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_constructor) in CheckConstructorDeclarator()
6652 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_constructor) in CheckConstructorDeclarator()
6660 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor) in CheckConstructorDeclarator()
6707 Diag(ParamLoc, diag::err_constructor_byvalue_arg) in CheckConstructor()
6765 Diag(D.getIdentifierLoc(), diag::err_destructor_typedef_name) in CheckDestructorDeclarator()
6770 Diag(D.getIdentifierLoc(), diag::err_destructor_typedef_name) in CheckDestructorDeclarator()
6783 Diag(D.getIdentifierLoc(), diag::err_destructor_cannot_be) in CheckDestructorDeclarator()
6800 Diag(D.getIdentifierLoc(), diag::err_destructor_return_type) in CheckDestructorDeclarator()
6804 diagnoseIgnoredQualifiers(diag::err_destructor_return_type, TypeQuals, in CheckDestructorDeclarator()
6817 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_destructor) in CheckDestructorDeclarator()
6820 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_destructor) in CheckDestructorDeclarator()
6823 Diag(D.getIdentifierLoc(), diag::err_invalid_qualified_destructor) in CheckDestructorDeclarator()
6831 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_destructor) in CheckDestructorDeclarator()
6839 Diag(D.getIdentifierLoc(), diag::err_destructor_with_params); in CheckDestructorDeclarator()
6848 Diag(D.getIdentifierLoc(), diag::err_destructor_variadic); in CheckDestructorDeclarator()
6897 Diag(D.getIdentifierLoc(), diag::err_conv_function_not_member) in CheckConversionDeclarator()
6917 Diag(D.getIdentifierLoc(), diag::err_conv_function_return_type) in CheckConversionDeclarator()
6927 Diag(D.getIdentifierLoc(), diag::err_conv_function_with_params); in CheckConversionDeclarator()
6933 Diag(D.getIdentifierLoc(), diag::err_conv_function_variadic); in CheckConversionDeclarator()
6980 auto &&DB = Diag(Loc, diag::err_conv_function_with_complex_decl); in CheckConversionDeclarator()
7016 Diag(D.getIdentifierLoc(), diag::err_conv_function_to_array); in CheckConversionDeclarator()
7020 Diag(D.getIdentifierLoc(), diag::err_conv_function_to_function); in CheckConversionDeclarator()
7035 diag::warn_cxx98_compat_explicit_conversion_functions : in CheckConversionDeclarator()
7036 diag::ext_explicit_conversion_functions) in CheckConversionDeclarator()
7070 Diag(Conversion->getLocation(), diag::warn_conv_to_self_not_used) in ActOnConversionDeclarator()
7073 Diag(Conversion->getLocation(), diag::warn_conv_to_base_not_used) in ActOnConversionDeclarator()
7076 Diag(Conversion->getLocation(), diag::warn_conv_to_void_not_used) in ActOnConversionDeclarator()
7122 S.Diag(Loc, diag::warn_inline_namespace_reopened_noninline) in DiagnoseNamespaceInlineMismatch()
7125 S.Diag(Loc, diag::err_inline_namespace_mismatch) << *IsInline; in DiagnoseNamespaceInlineMismatch()
7127 S.Diag(PrevNS->getLocation(), diag::note_previous_definition); in DiagnoseNamespaceInlineMismatch()
7184 Diag(Loc, diag::err_redefinition_different_kind) in ActOnStartNamespaceDef()
7186 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
7396 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found); in LookupStdInitializerList()
7403 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found); in LookupStdInitializerList()
7411 S.Diag(Found->getLocation(), diag::err_malformed_std_initializer_list); in LookupStdInitializerList()
7420 S.Diag(Template->getLocation(), diag::err_malformed_std_initializer_list); in LookupStdInitializerList()
7500 S.PDiag(diag::err_using_directive_member_suggest) in TryNamespaceTypoCorrection()
7502 S.PDiag(diag::note_namespace_defined_here)); in TryNamespaceTypoCorrection()
7505 S.PDiag(diag::err_using_directive_suggest) << Ident, in TryNamespaceTypoCorrection()
7506 S.PDiag(diag::note_namespace_defined_here)); in TryNamespaceTypoCorrection()
7547 Diag(IdentLoc, diag::ext_using_undefined_std); in ActOnUsingDirective()
7586 Diag(IdentLoc, diag::warn_using_directive_in_header); in ActOnUsingDirective()
7591 Diag(IdentLoc, diag::err_expected_namespace_name) << SS.getRange(); in ActOnUsingDirective()
7638 diag::warn_cxx98_compat_using_decl_constructor : in ActOnUsingDeclaration()
7639 diag::err_using_decl_constructor) in ActOnUsingDeclaration()
7647 Diag(Name.getLocStart(), diag::err_using_decl_destructor) in ActOnUsingDeclaration()
7652 Diag(Name.getLocStart(), diag::err_using_decl_template_id) in ActOnUsingDeclaration()
7665 getLangOpts().CPlusPlus11 ? diag::err_access_decl in ActOnUsingDeclaration()
7666 : diag::warn_access_decl_deprecated) in ActOnUsingDeclaration()
7737 diag::err_using_decl_nested_name_specifier_is_current_class) in CheckUsingShadowDecl()
7739 Diag(Orig->getLocation(), diag::note_using_decl_target); in CheckUsingShadowDecl()
7744 diag::err_using_decl_nested_name_specifier_is_not_base_class) in CheckUsingShadowDecl()
7748 Diag(Orig->getLocation(), diag::note_using_decl_target); in CheckUsingShadowDecl()
7789 Diag(Using->getLocation(), diag::err_using_decl_conflict); in CheckUsingShadowDecl()
7801 Diag(Using->getLocation(), diag::err_using_decl_conflict); in CheckUsingShadowDecl()
7805 Diag(Target->getLocation(), diag::note_using_decl_target); in CheckUsingShadowDecl()
7806 Diag(OldDecl->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
7816 Diag(Using->getLocation(), diag::err_using_decl_conflict); in CheckUsingShadowDecl()
7817 Diag(Target->getLocation(), diag::note_using_decl_target); in CheckUsingShadowDecl()
7818 Diag(Tag->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
7825 Diag(Using->getLocation(), diag::err_using_decl_conflict); in CheckUsingShadowDecl()
7826 Diag(Target->getLocation(), diag::note_using_decl_target); in CheckUsingShadowDecl()
7827 Diag(NonTag->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
8020 Diag(IdentLoc, diag::err_using_requires_qualname); in BuildUsingDeclaration()
8131 diagnoseTypo(Corrected, PDiag(diag::err_no_member_suggest) in BuildUsingDeclaration()
8156 Diag(IdentLoc, diag::err_no_member) in BuildUsingDeclaration()
8168 Diag(IdentLoc, diag::err_using_typename_non_type); in BuildUsingDeclaration()
8171 diag::note_using_decl_target); in BuildUsingDeclaration()
8179 Diag(IdentLoc, diag::err_using_dependent_value_is_type); in BuildUsingDeclaration()
8180 Diag(R.getFoundDecl()->getLocation(), diag::note_using_decl_target); in BuildUsingDeclaration()
8188 Diag(IdentLoc, diag::err_using_decl_can_not_refer_to_namespace) in BuildUsingDeclaration()
8230 diag::err_using_decl_constructor_not_in_direct_base) in CheckInheritingConstructorUsingDecl()
8292 Diag(NameLoc, diag::err_using_decl_redeclaration) << SS.getRange(); in CheckUsingDeclRedeclaration()
8293 Diag(D->getLocation(), diag::note_using_decl) << 1; in CheckUsingDeclRedeclaration()
8322 Diag(NameLoc, diag::err_using_decl_can_not_refer_to_class_member) in CheckUsingDeclQualifier()
8339 Diag(SS.getBeginLoc(), diag::note_using_decl_class_member_workaround) in CheckUsingDeclQualifier()
8348 Diag(InsertLoc, diag::note_using_decl_class_member_workaround) in CheckUsingDeclQualifier()
8364 Diag(UsingLoc, diag::note_using_decl_class_member_workaround) in CheckUsingDeclQualifier()
8392 diag::err_using_decl_nested_name_specifier_is_not_class) in CheckUsingDeclQualifier()
8411 diag::err_using_decl_nested_name_specifier_is_current_class) in CheckUsingDeclQualifier()
8417 diag::err_using_decl_nested_name_specifier_is_not_base_class) in CheckUsingDeclQualifier()
8477 diag::err_using_decl_nested_name_specifier_is_not_base_class) in CheckUsingDeclQualifier()
8551 Diag(UsingLoc, diag::err_alias_template_extra_headers) in ActOnAliasDeclaration()
8565 Diag(UsingLoc, diag::err_redefinition_different_kind) in ActOnAliasDeclaration()
8570 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
8590 Diag(NewTD->getLocation(), diag::err_redefinition_different_typedef) in ActOnAliasDeclaration()
8593 Diag(OldTD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
8650 Diag(IdentLoc, diag::err_expected_namespace_name) << SS.getRange(); in ActOnNamespaceAliasDef()
8669 Diag(AliasLoc, diag::err_redefinition_different_namespace_alias) in ActOnNamespaceAliasDef()
8671 Diag(PrevDecl->getLocation(), diag::note_previous_namespace_alias) in ActOnNamespaceAliasDef()
8677 ? diag::err_redefinition in ActOnNamespaceAliasDef()
8678 : diag::err_redefinition_different_kind; in ActOnNamespaceAliasDef()
8680 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
8927 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitDefaultConstructor()
9054 SemaRef.Diag(UsingLoc, diag::warn_using_decl_constructor_ellipsis); in inherit()
9056 diag::note_using_decl_constructor_ellipsis); in inherit()
9139 SemaRef.Diag(UsingLoc, diag::err_using_decl_constructor_conflict); in declareCtor()
9141 diag::note_using_decl_constructor_conflict_current_ctor); in declareCtor()
9143 diag::note_using_decl_constructor_conflict_previous_ctor); in declareCtor()
9145 diag::note_using_decl_constructor_conflict_previous_using); in declareCtor()
9269 Diag(CurrentLocation, diag::note_inhctor_synthesized_at) in DefineInheritingConstructor()
9401 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitDestructor()
10100 diag::warn_deprecated_copy_operation) in diagnoseDeprecatedCopyOperation()
10103 S.Diag(UseLoc, diag::note_member_synthesized_at) in diagnoseDeprecatedCopyOperation()
10202 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyAssignment()
10224 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign) in DefineImplicitCopyAssignment()
10226 Diag(Field->getLocation(), diag::note_declared_at); in DefineImplicitCopyAssignment()
10227 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyAssignment()
10236 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign) in DefineImplicitCopyAssignment()
10238 Diag(Field->getLocation(), diag::note_declared_at); in DefineImplicitCopyAssignment()
10239 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyAssignment()
10273 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyAssignment()
10294 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyAssignment()
10506 S.Diag(CurrentLocation, diag::warn_vbase_moved_multiple_times) in checkMoveAssignmentForRepeatedMove()
10508 S.Diag(Existing->getLocStart(), diag::note_vbase_moved_here) in checkMoveAssignmentForRepeatedMove()
10512 S.Diag(BI.getLocStart(), diag::note_vbase_moved_here) in checkMoveAssignmentForRepeatedMove()
10632 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveAssignment()
10654 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign) in DefineImplicitMoveAssignment()
10656 Diag(Field->getLocation(), diag::note_declared_at); in DefineImplicitMoveAssignment()
10657 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveAssignment()
10666 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign) in DefineImplicitMoveAssignment()
10668 Diag(Field->getLocation(), diag::note_declared_at); in DefineImplicitMoveAssignment()
10669 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveAssignment()
10706 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveAssignment()
10728 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveAssignment()
10904 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitCopyConstructor()
11076 Diag(CurrentLocation, diag::note_member_synthesized_at) in DefineImplicitMoveConstructor()
11211 Diag(CurrentLocation, diag::note_lambda_to_block_conv); in DefineImplicitLambdaToBlockPointerConversion()
11220 Diag(CurrentLocation, diag::note_lambda_to_block_conv); in DefineImplicitLambdaToBlockPointerConversion()
11351 Diag(Field->getLocEnd(), diag::err_in_class_initializer_not_yet_parsed) in BuildCXXDefaultInitExpr()
11355 diag::err_in_class_initializer_not_yet_parsed_outer_class) in BuildCXXDefaultInitExpr()
11373 PDiag(diag::err_access_dtor_var) in FinalizeVarWithDestructor()
11383 Diag(VD->getLocation(), diag::warn_exit_time_destructor); in FinalizeVarWithDestructor()
11387 Diag(VD->getLocation(), diag::warn_global_destructor); in FinalizeVarWithDestructor()
11443 diag::err_operator_new_delete_declared_in_namespace) in CheckOperatorNewDeleteDeclarationScope()
11450 diag::err_operator_new_delete_declared_static) in CheckOperatorNewDeleteDeclarationScope()
11469 diag::err_operator_new_delete_dependent_result_type) in CheckOperatorNewDeleteTypes()
11475 diag::err_operator_new_delete_invalid_result_type) in CheckOperatorNewDeleteTypes()
11481 diag::err_operator_new_delete_template_too_few_parameters) in CheckOperatorNewDeleteTypes()
11487 diag::err_operator_new_delete_too_few_parameters) in CheckOperatorNewDeleteTypes()
11522 diag::err_operator_new_dependent_param_type, in CheckOperatorNewDeclaration()
11523 diag::err_operator_new_param_type)) in CheckOperatorNewDeclaration()
11530 diag::err_operator_new_default_arg) in CheckOperatorNewDeclaration()
11550 diag::err_operator_delete_dependent_param_type, in CheckOperatorDeleteDeclaration()
11551 diag::err_operator_delete_param_type)) in CheckOperatorDeleteDeclaration()
11586 diag::err_operator_overload_static) << FnDecl->getDeclName(); in CheckOverloadedOperatorDeclaration()
11600 diag::err_operator_overload_needs_class_or_enum) in CheckOverloadedOperatorDeclaration()
11614 diag::err_operator_overload_default_arg) in CheckOverloadedOperatorDeclaration()
11652 return Diag(FnDecl->getLocation(), diag::err_operator_overload_must_be) in CheckOverloadedOperatorDeclaration()
11659 return Diag(FnDecl->getLocation(), diag::err_operator_overload_variadic) in CheckOverloadedOperatorDeclaration()
11666 diag::err_operator_overload_must_be_member) in CheckOverloadedOperatorDeclaration()
11687 diag::err_operator_overload_post_incdec_must_be_int) in CheckOverloadedOperatorDeclaration()
11699 Diag(FnDecl->getLocation(), diag::err_literal_operator_outside_namespace) in CheckLiteralOperatorDeclaration()
11705 Diag(FnDecl->getLocation(), diag::err_literal_operator_extern_c); in CheckLiteralOperatorDeclaration()
11750 diag::ext_string_literal_operator_template); in CheckLiteralOperatorDeclaration()
11811 Diag(FnDecl->getLocation(), diag::err_literal_operator_params) in CheckLiteralOperatorDeclaration()
11821 diag::err_literal_operator_default_argument) in CheckLiteralOperatorDeclaration()
11833 Diag(FnDecl->getLocation(), diag::warn_user_literal_reserved) in CheckLiteralOperatorDeclaration()
11851 Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_not_ascii) in ActOnStartLinkageSpecification()
11863 Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_unknown) in ActOnStartLinkageSpecification()
11928 Diag(Loc, diag::err_catch_rvalue_ref); in BuildExceptionDeclaration()
11934 unsigned DK = diag::err_catch_incomplete; in BuildExceptionDeclaration()
11938 DK = diag::err_catch_incomplete_ptr; in BuildExceptionDeclaration()
11943 DK = diag::err_catch_incomplete_ref; in BuildExceptionDeclaration()
11951 diag::err_abstract_type_in_decl, in BuildExceptionDeclaration()
11963 Diag(Loc, diag::err_objc_object_catch); in BuildExceptionDeclaration()
11968 Diag(Loc, diag::warn_objc_pointer_cxx_catch_fragile); in BuildExceptionDeclaration()
12051 Diag(D.getIdentifierLoc(), diag::err_redefinition) in ActOnExceptionDeclarator()
12053 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
12061 Diag(D.getIdentifierLoc(), diag::err_qualified_catch_declarator) in ActOnExceptionDeclarator()
12113 diag::err_static_assert_expression_is_not_constant, in BuildStaticAssertDeclaration()
12122 Diag(StaticAssertLoc, diag::err_static_assert_failed) in BuildStaticAssertDeclaration()
12168 diag::warn_cxx98_compat_unelaborated_friend_type : in CheckFriendTypeDecl()
12169 diag::ext_unelaborated_friend_type) in CheckFriendTypeDecl()
12177 diag::warn_cxx98_compat_nonclass_type_friend : in CheckFriendTypeDecl()
12178 diag::ext_nonclass_type_friend) in CheckFriendTypeDecl()
12185 diag::warn_cxx98_compat_enum_friend : in CheckFriendTypeDecl()
12186 diag::ext_enum_friend) in CheckFriendTypeDecl()
12198 Diag(FriendLoc, diag::err_friend_not_first_in_declaration) << T; in CheckFriendTypeDecl()
12239 Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams) in ActOnTemplatedFriendTag()
12310 Diag(NameLoc, diag::warn_template_qualified_friend_unsupported) in ActOnTemplatedFriendTag()
12380 Diag(Loc, diag::err_tagless_friend_type_template) in ActOnFriendTypeDecl()
12436 Diag(Loc, diag::err_unexpected_friend); in ActOnFriendFunctionDecl()
12518 Diag(NameInfo.getBeginLoc(), diag::err_friend_def_in_local_class); in ActOnFriendFunctionDecl()
12593 Diag(Loc, diag::err_qualified_friend_not_found) in ActOnFriendFunctionDecl()
12603 diag::warn_cxx98_compat_friend_is_member : in ActOnFriendFunctionDecl()
12604 diag::err_friend_is_member); in ActOnFriendFunctionDecl()
12612 = Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def); in ActOnFriendFunctionDecl()
12631 Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def) in ActOnFriendFunctionDecl()
12644 Diag(Loc, diag::err_introducing_special_friend) << in ActOnFriendFunctionDecl()
12707 Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_redeclared); in ActOnFriendFunctionDecl()
12708 Diag(OldFD->getLocation(), diag::note_previous_declaration); in ActOnFriendFunctionDecl()
12710 Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_must_be_def); in ActOnFriendFunctionDecl()
12715 Diag(FD->getLocation(), diag::warn_template_qualified_friend_unsupported) in ActOnFriendFunctionDecl()
12730 Diag(DelLoc, diag::err_deleted_non_function); in SetDeclDeleted()
12740 Diag(DelLoc, diag::err_deleted_decl_not_first); in SetDeclDeleted()
12742 Prev->isImplicit() ? diag::note_previous_implicit_declaration in SetDeclDeleted()
12743 : diag::note_previous_declaration); in SetDeclDeleted()
12752 Diag(Fn->getLocation(), diag::err_attribute_dll_deleted) << DLLAttr; in SetDeclDeleted()
12768 Diag(DelLoc, diag::err_deleted_override) << MD->getDeclName(); in SetDeclDeleted()
12771 Diag((*I)->getLocation(), diag::note_overridden_virtual_function); in SetDeclDeleted()
12779 Diag(DelLoc, diag::err_deleted_main); in SetDeclDeleted()
12797 Diag(DefaultLoc, diag::err_default_special_members); in SetDeclDefaulted()
12847 Diag(DefaultLoc, diag::err_default_special_members); in SetDeclDefaulted()
12858 diag::err_return_in_constructor_handler); in SearchForReturnInStmt()
12890 diag::err_conflicting_overriding_cc_attributes) in CheckOverridingFunctionAttributes()
12892 Diag(Old->getLocation(), diag::note_overridden_virtual_function); in CheckOverridingFunctionAttributes()
12926 diag::err_different_return_type_for_overriding_virtual_function) in CheckOverridingFunctionReturnType()
12929 Diag(Old->getLocation(), diag::note_overridden_virtual_function) in CheckOverridingFunctionReturnType()
12942 diag::err_covariant_return_incomplete, in CheckOverridingFunctionReturnType()
12950 Diag(New->getLocation(), diag::err_covariant_return_not_derived) in CheckOverridingFunctionReturnType()
12953 Diag(Old->getLocation(), diag::note_overridden_virtual_function) in CheckOverridingFunctionReturnType()
12961 diag::err_covariant_return_inaccessible_base, in CheckOverridingFunctionReturnType()
12962 diag::err_covariant_return_ambiguous_derived_to_base_conv, in CheckOverridingFunctionReturnType()
12969 Diag(Old->getLocation(), diag::note_overridden_virtual_function) in CheckOverridingFunctionReturnType()
12978 diag::err_covariant_return_type_different_qualifications) in CheckOverridingFunctionReturnType()
12981 Diag(Old->getLocation(), diag::note_overridden_virtual_function) in CheckOverridingFunctionReturnType()
12990 diag::err_covariant_return_type_class_type_more_qualified) in CheckOverridingFunctionReturnType()
12993 Diag(Old->getLocation(), diag::note_overridden_virtual_function) in CheckOverridingFunctionReturnType()
13017 Diag(Method->getLocation(), diag::err_non_virtual_pure) in CheckPureMethod()
13086 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type) in ActOnCXXConditionDeclaration()
13247 ? diag::warn_weak_template_vtable : diag::warn_weak_vtable) in DefineUsedVTables()
13342 PDiag(diag::err_access_dtor_ivar) in SetIvarInitializers()
13390 diag::warn_delegating_ctor_cycle) in DelegatingCycleHelper()
13395 S.Diag(Target->getLocation(), diag::note_it_delegates_to); in DelegatingCycleHelper()
13405 S.Diag(C->getLocation(), diag::note_which_delegates_to); in DelegatingCycleHelper()
13441 S.Diag(E->getLocation(), diag::err_this_static_member_func) in VisitCXXThisExpr()
13614 diag::err_noexcept_needs_constant_expression, in checkExceptionSpecification()
13671 Diag(DeclStart, diag::err_anonymous_property); in HandleMSProperty()
13693 diag::err_invalid_thread) in HandleMSProperty()