Home | History | Annotate | Download | only in Sema

Lines Matching defs:Diag

237   Diag(IILoc, diag::err_template_kw_missing)
339 diagnoseTypo(Corrected, PDiag(diag::err_no_member_template_suggest)
343 diagnoseTypo(Corrected, PDiag(diag::err_no_template_suggest) << Name);
387 Diag(Found.getNameLoc(),
388 diag::ext_nested_name_member_ref_lookup_ambiguous)
391 Diag(Found.getRepresentativeDecl()->getLocation(),
392 diag::note_ambig_member_ref_object_type)
394 Diag(FoundOuter.getFoundDecl()->getLocation(),
395 diag::note_ambig_member_ref_scope);
457 Diag(Loc, diag::err_template_param_shadow)
459 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
584 Diag(EqualLoc, diag::err_template_param_pack_default_arg);
622 Diag(Loc, diag::err_variably_modified_nontype_template_param)
662 Diag(Loc, diag::err_template_nontype_parm_bad_type)
712 Diag(EqualLoc, diag::err_template_param_pack_default_arg);
771 Diag(Param->getLocation(), diag::err_template_template_parm_no_parms)
780 Diag(EqualLoc, diag::err_template_param_pack_default_arg);
795 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template)
822 Diag(ExportLoc, diag::warn_template_export_unsupported);
857 Diag(KWLoc, diag::err_template_unnamed_class);
875 Diag(NameLoc, TUK == TUK_Friend
876 ? diag::warn_template_qualified_friend_ignored
877 : diag::err_template_qualified_declarator_no_match)
989 Diag(KWLoc, diag::err_use_with_wrong_tag)
992 Diag(PrevRecordDecl->getLocation(), diag::note_previous_use);
999 Diag(NameLoc, diag::err_redefinition) << Name;
1000 Diag(Def->getLocation(), diag::note_previous_definition);
1017 Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
1018 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1042 Diag(NameLoc, TUK == TUK_Friend ? diag::err_friend_decl_does_not_match
1043 : diag::err_member_decl_does_not_match)
1168 S.Diag(ParamLoc, S.getLangOpts().CPlusPlus11 ?
1169 diag::warn_cxx98_compat_template_parameter_default_in_function_template
1170 : diag::ext_template_parameter_default_in_function_template)
1179 S.Diag(ParamLoc, diag::err_template_parameter_default_template_member)
1188 S.Diag(ParamLoc, diag::err_template_parameter_default_friend_template)
1428 Diag((*NewParam)->getLocation(),
1429 diag::err_template_param_pack_must_be_last_template_parameter);
1437 Diag(NewDefaultLoc, diag::err_template_param_default_arg_redefinition);
1438 Diag(OldDefaultLoc, diag::note_template_param_prev_default_arg);
1446 Diag((*NewParam)->getLocation(),
1447 diag::err_template_param_default_arg_missing);
1448 Diag(PreviousDefaultArgLoc, diag::note_template_param_prev_default_arg);
1723 Diag(DeclLoc, diag::err_specialize_member_of_template)
1745 Diag(DeclLoc, diag::err_template_spec_needs_header)
1837 Diag(ParamLists[ParamIdx]->getTemplateLoc(),
1838 diag::err_template_param_list_matches_nontemplate)
1890 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters)
1929 Diag(ParamLists[ParamIdx]->getTemplateLoc(),
1930 AllExplicitSpecHeaders ? diag::warn_template_spec_extra_headers
1931 : diag::err_template_spec_extra_headers)
1939 Diag(ExplicitSpecLoc,
1940 diag::note_explicit_template_spec_does_not_need_header)
1969 Diag(Template->getLocation(), diag::note_template_declared_here)
1985 Diag((*I)->getLocation(), diag::note_template_declared_here)
2015 Diag(TemplateLoc, diag::err_template_id_not_a_type)
2269 Diag(TemplateLoc, diag::err_tag_reference_non_tag) << 4;
2270 Diag(TAT->getLocation(), diag::note_declared_at);
2286 Diag(TagLoc, diag::err_use_with_wrong_tag)
2289 Diag(D->getLocation(), diag::note_previous_use);
2425 return Diag(D.getIdentifierLoc(), diag::err_var_spec_no_template_but_method)
2427 return Diag(D.getIdentifierLoc(), diag::err_var_spec_no_template)
2476 Diag(TemplateNameLoc, diag::err_partial_spec_fully_specialized)
2487 Diag(TemplateNameLoc, diag::err_partial_spec_args_match_primary_template)
2553 Diag(TemplateNameLoc, diag::warn_partial_specs_not_deducible)
2560 Diag(Param->getLocation(), diag::note_partial_spec_unused_parameter)
2563 Diag(Param->getLocation(), diag::note_partial_spec_unused_parameter)
2598 Diag(TemplateNameLoc, diag::err_specialization_after_instantiation)
2601 Diag(PrevDecl->getPointOfInstantiation(),
2602 diag::note_instantiation_required_here)
2781 Diag(PointOfInstantiation, diag::err_partial_spec_ordering_ambiguous)
2788 Diag(P->Partial->getLocation(), diag::note_partial_spec_match)
2889 Diag(NameInfo.getLoc(), diag::err_template_kw_refers_to_non_template)
2895 Diag(NameInfo.getLoc(), diag::err_template_kw_refers_to_class_template)
2898 Diag(Temp->getLocation(), diag::note_referenced_class_template);
2920 Diag(TemplateKWLoc,
2922 diag::warn_cxx98_compat_template_outside_of_template :
2923 diag::ext_template_outside_of_template)
2958 Diag(Name.getLocStart(),
2959 diag::err_template_kw_refers_to_non_template)
2990 Diag(Name.getLocStart(),
2991 diag::err_template_kw_refers_to_non_template)
3019 Diag(SR.getBegin(), diag::err_template_missing_args)
3022 Diag(Decl->getLocation(), diag::note_template_decl_here);
3056 Diag(Loc, getLangOpts().MSVCCompat
3057 ? diag::ext_ms_template_type_arg_missing_typename
3058 : diag::err_template_arg_must_be_type_suggest)
3060 Diag(Param->getLocation(), diag::note_template_param_here);
3087 Diag(SR.getBegin(), diag::err_template_arg_must_be_type) << SR;
3088 Diag(Param->getLocation(), diag::note_template_param_here);
3494 Diag(Arg.getLocation(), diag::err_template_arg_must_be_expr)
3497 Diag(Param->getLocation(), diag::note_template_param_here);
3514 Diag(SR.getBegin(), diag::err_template_arg_nontype_ambig) << SR << T;
3516 Diag(SR.getBegin(), diag::err_template_arg_must_be_expr) << SR;
3517 Diag(Param->getLocation(), diag::note_template_param_here);
3569 Diag(Arg.getLocation(), diag::err_template_arg_must_be_template)
3599 S.Diag(TemplateLoc, diag::err_template_arg_list_different_arity)
3605 S.Diag(Template->getLocation(), diag::note_template_decl_here)
3677 Diag(TemplateLoc, diag::err_template_arg_list_different_arity)
3683 Diag(Template->getLocation(), diag::note_template_decl_here)
3703 Diag(TemplateArgs[ArgIdx].getLocation(),
3704 diag::err_alias_template_expansion_into_fixed_list)
3706 Diag((*Param)->getLocation(), diag::note_template_param_here);
4097 S.Diag(SR.getBegin(),
4099 diag::warn_cxx98_compat_template_arg_local_type :
4100 diag::ext_template_arg_local_type)
4106 S.Diag(SR.getBegin(),
4108 diag::warn_cxx98_compat_template_arg_unnamed_type :
4109 diag::ext_template_arg_unnamed_type) << SR;
4110 S.Diag(Tag->getLocation(), diag::note_template_unnamed_type_here);
4149 return Diag(SR.getBegin(), diag::err_variably_modified_template_arg) << Arg;
4151 return Diag(SR.getBegin(), diag::err_template_arg_overload_type) << SR;
4164 !Diags.isIgnored(diag::warn_cxx98_compat_template_arg_unnamed_type,
4166 !Diags.isIgnored(diag::warn_cxx98_compat_template_arg_local_type,
4204 EvalResult.Diag = &Notes;
4213 diag::note_invalid_subexpr_in_const_expr) {
4218 S.Diag(DiagLoc, diag::err_template_arg_not_address_constant)
4221 S.Diag(Notes[I].first, Notes[I].second);
4223 S.Diag(Param->getLocation(), diag::note_template_param_here);
4247 S.Diag(Arg->getExprLoc(), diag::err_template_arg_wrongtype_null_constant)
4249 S.Diag(Param->getLocation(), diag::note_template_param_here);
4257 S.Diag(Arg->getExprLoc(), diag::err_template_arg_untyped_null_constant)
4261 S.Diag(Param->getLocation(), diag::note_template_param_here);
4299 S.Diag(Arg->getLocStart(),
4300 diag::err_template_arg_ref_bind_ignores_quals)
4302 S.Diag(Param->getLocation(), diag::note_template_param_here);
4315 S.Diag(Arg->getLocStart(), diag::err_template_arg_no_ref_bind)
4318 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_convertible)
4320 S.Diag(Param->getLocation(), diag::note_template_param_here);
4365 S.Diag(ArgIn->getLocStart(), diag::ext_ms_deref_template_argument)
4374 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_decl_ref)
4399 S.Diag(Arg->getLocStart(),
4401 ? diag::warn_cxx98_compat_template_arg_extra_parens
4402 : diag::ext_template_arg_extra_parens)
4441 S.Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
4470 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_decl_ref)
4472 S.Diag(Param->getLocation(), diag::note_template_param_here);
4478 S.Diag(Arg->getLocStart(), diag::err_template_arg_field)
4480 S.Diag(Param->getLocation(), diag::note_template_param_here);
4487 S.Diag(Arg->getLocStart(), diag::err_template_arg_method)
4489 S.Diag(Param->getLocation(), diag::note_template_param_here);
4500 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_object_or_func)
4502 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4508 S.Diag(Arg->getLocStart(), S.getLangOpts().CPlusPlus11 ?
4509 diag::warn_cxx98_compat_template_arg_object_internal :
4510 diag::ext_template_arg_object_internal)
4512 S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
4515 S.Diag(Arg->getLocStart(), diag::err_template_arg_object_no_linkage)
4517 S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
4532 S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
4534 S.Diag(Param->getLocation(), diag::note_template_param_here);
4538 S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
4541 S.Diag(Param->getLocation(), diag::note_template_param_here);
4548 S.Diag(Arg->getLocStart(),
4549 diag::err_template_arg_reference_var)
4551 S.Diag(Param->getLocation(), diag::note_template_param_here);
4557 S.Diag(Arg->getLocStart(), diag::err_template_arg_thread_local)
4559 S.Diag(Var->getLocation(), diag::note_template_arg_refers_here);
4572 S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
4574 S.Diag(Param->getLocation(), diag::note_template_param_here);
4578 S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
4581 S.Diag(Param->getLocation(), diag::note_template_param_here);
4595 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_address_of)
4597 S.Diag(Param->getLocation(), diag::note_template_param_here);
4601 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_address_of)
4605 S.Diag(Param->getLocation(), diag::note_template_param_here);
4636 S.Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
4655 S.Diag(Arg->getLocStart(), diag::err_template_arg_not_convertible)
4657 S.Diag(Param->getLocation(), diag::note_template_param_here);
4678 S.Diag(Arg->getLocStart(),
4680 diag::warn_cxx98_compat_template_arg_extra_parens :
4681 diag::ext_template_arg_extra_parens)
4721 return S.Diag(Arg->getLocStart(),
4722 diag::err_template_arg_not_pointer_to_member_form)
4745 S.Diag(Arg->getLocStart(),
4746 diag::err_template_arg_not_pointer_to_member_form)
4748 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4802 Diag(StartLoc, diag::err_deduced_non_type_template_arg_type_mismatch)
4805 Diag(Param->getLocation(), diag::note_template_param_here);
4862 Diag(Arg->getLocStart(),
4863 diag::err_template_arg_not_integral_or_enumeral)
4865 Diag(Param->getLocation(), diag::note_template_param_here);
4876 S.Diag(Loc, diag::err_template_arg_not_ice) << T << SR;
4903 Diag(Arg->getLocStart(),
4904 diag::err_template_arg_not_convertible)
4906 Diag(Param->getLocation(), diag::note_template_param_here);
4944 Diag(Arg->getLocStart(), diag::warn_template_arg_negative)
4947 Diag(Param->getLocation(), diag::note_template_param_here);
4959 Diag(Arg->getLocStart(),
4960 diag::warn_template_arg_too_large)
4963 Diag(Param->getLocation(), diag::note_template_param_here);
5083 Diag(Arg->getExprLoc(), diag::err_template_arg_not_convertible)
5085 Diag(Param->getLocation(), diag::note_template_param_here);
5092 Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
5141 Diag(Arg.getLocation(), diag::err_template_arg_not_class_template);
5142 Diag(Template->getLocation(), diag::note_template_arg_refers_here_func)
5345 unsigned NextDiag = diag::err_template_param_different_kind;
5347 S.Diag(TemplateArgLoc, diag::err_template_arg_template_params_mismatch);
5348 NextDiag = diag::note_template_param_different_kind;
5350 S.Diag(New->getLocation(), NextDiag)
5352 S.Diag(Old->getLocation(), diag::note_template_prev_declaration)
5367 unsigned NextDiag = diag::err_template_parameter_pack_non_pack;
5369 S.Diag(TemplateArgLoc,
5370 diag::err_template_arg_template_params_mismatch);
5371 NextDiag = diag::note_template_parameter_pack_non_pack;
5377 S.Diag(New->getLocation(), NextDiag)
5379 S.Diag(Old->getLocation(), diag::note_template_parameter_pack_here)
5402 unsigned NextDiag = diag::err_template_nontype_parm_different_type;
5404 S.Diag(TemplateArgLoc,
5405 diag::err_template_arg_template_params_mismatch);
5406 NextDiag = diag::note_template_nontype_parm_different_type;
5408 S.Diag(NewNTTP->getLocation(), NextDiag)
5411 S.Diag(OldNTTP->getLocation(),
5412 diag::note_template_nontype_parm_prev_declaration)
5448 unsigned NextDiag = diag::err_template_param_list_different_arity;
5450 S.Diag(TemplateArgLoc, diag::err_template_arg_template_params_mismatch);
5451 NextDiag = diag::note_template_param_list_different_arity;
5453 S.Diag(New->getTemplateLoc(), NextDiag)
5457 S.Diag(Old->getTemplateLoc(), diag::note_template_prev_declaration)
5572 return Diag(TemplateParams->getTemplateLoc(), diag::err_template_linkage)
5588 return Diag(TemplateParams->getTemplateLoc(),
5589 diag::err_template_inside_local_class)
5596 return Diag(TemplateParams->getTemplateLoc(),
5597 diag::err_template_outside_namespace_or_class_scope)
5664 S.Diag(Loc, diag::err_template_spec_unknown_kind)
5666 S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
5684 S.Diag(Loc, diag::err_template_spec_decl_function_scope)
5695 S.Diag(Loc, diag::ext_function_specialization_in_class)
5698 S.Diag(Loc, diag::err_template_spec_decl_class_scope)
5708 S.Diag(Loc, diag::err_template_spec_decl_class_scope)
5734 S.Diag(Loc, diag::err_template_spec_redecl_global_scope)
5737 S.Diag(Loc, diag::err_template_spec_redecl_out_of_scope)
5743 S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
5767 S.Diag(Loc, diag::err_template_spec_decl_out_of_scope_global)
5770 int Diag;
5772 Diag = diag::err_template_spec_decl_out_of_scope;
5774 Diag = diag::ext_template_spec_decl_out_of_scope;
5776 Diag = diag::warn_cxx98_compat_template_spec_decl_out_of_scope;
5777 S.Diag(Loc, Diag)
5781 S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
5859 S.Diag(TemplateNameLoc,
5860 diag::err_dependent_non_type_arg_in_partial_spec);
5861 S.Diag(ParamUseRange.getBegin(),
5862 diag::note_dependent_non_type_default_arg_in_partial_spec)
5865 S.Diag(ParamUseRange.getBegin(),
5866 diag::err_dependent_non_type_arg_in_partial_spec)
5887 S.Diag(IsDefaultArgument ? TemplateNameLoc : ArgExpr->getLocStart(),
5888 diag::err_dependent_typed_non_type_arg_in_partial_spec)
5890 S.Diag(Param->getLocation(), diag::note_template_param_here)
5956 Diag(TemplateNameLoc, diag::err_not_class_template_specialization)
5982 Diag(KWLoc, diag::err_partial_specialization_friend)
5994 Diag(TTP->getDefaultArgumentLoc(),
5995 diag::err_default_arg_in_partial_spec);
6001 Diag(NTTP->getDefaultArgumentLoc(),
6002 diag::err_default_arg_in_partial_spec)
6009 Diag(TTP->getDefaultArgument().getLocation(),
6010 diag::err_default_arg_in_partial_spec)
6018 Diagdiag::err_template_spec_friend)
6036 Diag(KWLoc, diag::err_use_with_wrong_tag)
6040 Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
6041 diag::note_previous_use);
6076 Diag(TemplateNameLoc, diag::err_partial_spec_fully_specialized)
6117 Diag(TemplateNameLoc, diag::err_partial_spec_args_match_primary_template)
6171 Diag(TemplateNameLoc, diag::warn_partial_specs_not_deducible)
6178 Diag(Param->getLocation(),
6179 diag::note_partial_spec_unused_parameter)
6182 Diag(Param->getLocation(),
6183 diag::note_partial_spec_unused_parameter)
6230 Diag(TemplateNameLoc, diag::err_specialization_after_instantiation)
6233 Diag(PrevDecl->getPointOfInstantiation(),
6234 diag::note_instantiation_required_here)
6249 Diag(TemplateNameLoc, diag::err_redefinition)
6251 Diag(Def->getLocation(), diag::note_previous_definition);
6268 Diag(Specialization->getLocation(), diag::err_module_private_specialization)
6448 Diag(NewLoc, diag::err_specialization_after_instantiation)
6450 Diag(PrevPointOfInstantiation, diag::note_instantiation_required_here)
6483 Diag(NewLoc,
6484 diag::err_explicit_instantiation_declaration_after_definition);
6489 Diag(DiagLocForExplicitInstantiation(PrevDecl, PrevPointOfInstantiation),
6490 diag::note_explicit_instantiation_definition_here);
6513 Diag(NewLoc, getLangOpts().CPlusPlus11 ?
6514 diag::warn_cxx98_compat_explicit_instantiation_after_specialization :
6515 diag::ext_explicit_instantiation_after_specialization)
6517 Diag(PrevDecl->getLocation(),
6518 diag::note_previous_template_specialization);
6548 Diag(NewLoc, (getLangOpts().MSVCCompat)
6549 ? diag::warn_explicit_instantiation_duplicate
6550 : diag::err_explicit_instantiation_duplicate)
6552 Diag(DiagLocForExplicitInstantiation(PrevDecl, PrevPointOfInstantiation),
6553 diag::note_previous_explicit_instantiation);
6687 PDiag(diag::err_function_template_spec_no_match) << FD->getDeclName(),
6688 PDiag(diag::err_function_template_spec_ambiguous)
6690 PDiag(diag::note_function_template_spec_matched));
6865 Diag(Member->getLocation(), diag::err_spec_member_not_instantiated)
6867 Diag(Instantiation->getLocation(), diag::note_specialized_decl);
6967 S.Diag(InstLoc, diag::err_explicit_instantiation_in_class)
6990 S.Diag(InstLoc,
6992 diag::err_explicit_instantiation_out_of_scope :
6993 diag::warn_explicit_instantiation_out_of_scope_0x)
6996 S.Diag(InstLoc,
6998 diag::err_explicit_instantiation_unqualified_wrong_namespace :
6999 diag::warn_explicit_instantiation_unqualified_wrong_namespace_0x)
7002 S.Diag(InstLoc,
7004 diag::err_explicit_instantiation_must_be_global :
7005 diag::warn_explicit_instantiation_must_be_global_0x)
7007 S.Diag(D->getLocation(), diag::note_explicit_instantiation_here);
7056 Diag(KWLoc, diag::err_tag_reference_non_tag) << Kind;
7057 Diag(TD->getTemplatedDecl()->getLocation(),
7058 diag::note_previous_use);
7067 Diag(KWLoc, diag::err_use_with_wrong_tag)
7071 Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
7072 diag::note_previous_use);
7264 Diag(TemplateLoc, diag::err_explicit_instantiation_nontemplate_type)
7266 Diag(Record->getLocation(), diag::note_nontemplate_decl_here);
7277 Diag(TemplateLoc, diag::ext_explicit_instantiation_without_qualified_id)
7323 Diag(TemplateLoc, diag::err_explicit_instantiation_undefined_member)
7325 Diag(Pattern->getLocation(), diag::note_forward_declaration)
7364 Diag(D.getDeclSpec().getLocStart(),
7365 diag::err_explicit_instantiation_requires_name)
7388 Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_of_typedef)
7394 Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_storage_class)
7406 Diag(D.getDeclSpec().getInlineSpecLoc(),
7408 diag::err_explicit_instantiation_inline :
7409 diag::warn_explicit_instantiation_inline_0x)
7414 Diag(D.getDeclSpec().getConstexprSpecLoc(),
7415 diag::err_explicit_instantiation_constexpr);
7445 Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_not_known)
7449 Diag((*P)->getLocation(), diag::note_explicit_instantiation_here);
7455 Diag(D.getIdentifierLoc(),
7456 diag::err_explicit_instantiation_data_member_not_instantiated)
7458 Diag(Prev->getLocation(), diag::note_explicit_instantiation_here);
7471 Diag(T->getTypeLoc().getLocStart(),
7472 diag::err_auto_not_allowed_var_inst);
7480 Diag(D.getIdentifierLoc(),
7481 diag::err_explicit_instantiation_without_template_id)
7483 Diag(PrevTemplate->getLocation(),
7484 diag::note_explicit_instantiation_here);
7513 Diag(D.getIdentifierLoc(),
7514 diag::ext_explicit_instantiation_without_qualified_id)
7543 Diag(T->getTypeLoc().getLocStart(),
7544 diag::err_invalid_var_template_spec_type)
7546 Diag(PrevTemplate->getLocation(), diag::note_template_declared_here)
7613 PDiag(diag::err_explicit_instantiation_not_known) << Name,
7614 PDiag(diag::err_explicit_instantiation_ambiguous) << Name,
7615 PDiag(diag::note_explicit_instantiation_candidate));
7624 Diag(D.getIdentifierLoc(),
7625 diag::err_explicit_instantiation_member_function_not_instantiated)
7629 Diag(Specialization->getLocation(), diag::note_explicit_instantiation_here);
7675 Diag(D.getIdentifierLoc(),
7676 diag::ext_explicit_instantiation_without_qualified_id)
7703 Diag(NameLoc, diag::err_dependent_tag_decl)
7729 Diag(TypenameLoc,
7731 diag::warn_cxx98_compat_typename_outside_of_template :
7732 diag::ext_typename_outside_of_template)
7768 Diag(TypenameLoc,
7770 diag::warn_cxx98_compat_typename_outside_of_template :
7771 diag::ext_typename_outside_of_template)
7905 Diag(CondRange.getBegin(), diag::err_typename_nested_not_found_enable_if)
7910 DiagID = diag::err_typename_nested_not_found;
7919 Diag(IILoc, diag::err_typename_refers_to_using_value_decl)
7924 Diag(Loc, diag::note_using_value_decl_missing_typename)
7946 DiagID = diag::err_typename_nested_not_type;
7951 DiagID = diag::err_typename_nested_not_type;
7963 Diag(IILoc, DiagID) << FullRange << Name << Ctx;
7965 Diag(Referenced->getLocation(), diag::note_typename_refers_here)