Lines Matching refs:SR
2456 SourceRange SR = AL.getSourceRange();
2458 Diag(SR.getBegin(), diag::err_template_missing_args)
2459 << Name << SR;
2505 SourceRange SR = AL.getSourceRange();
2506 Diag(SR.getBegin(), diag::err_template_arg_must_be_type) << SR;
2917 SourceRange SR = Arg.getSourceRange();
2919 Diag(SR.getBegin(), diag::err_template_arg_nontype_ambig) << SR << T;
2921 Diag(SR.getBegin(), diag::err_template_arg_must_be_expr) << SR;
3293 SourceRange SR;
3298 UnnamedLocalNoLinkageFinder(Sema &S, SourceRange SR) : S(S), SR(SR) { }
3488 S.Diag(SR.getBegin(),
3492 << S.Context.getTypeDeclType(Tag) << SR;
3497 S.Diag(SR.getBegin(),
3500 diag::ext_template_arg_unnamed_type) << SR;
3537 SourceRange SR = ArgInfo->getTypeLoc().getSourceRange();
3540 return Diag(SR.getBegin(), diag::err_variably_modified_template_arg) << Arg;
3542 return Diag(SR.getBegin(), diag::err_template_arg_overload_type) << SR;
3554 SR.getBegin()) != DiagnosticsEngine::Ignored ||
3556 SR.getBegin()) != DiagnosticsEngine::Ignored :
3558 UnnamedLocalNoLinkageFinder Finder(*this, SR);
4208 SourceRange SR) {
4209 S.Diag(Loc, diag::err_template_arg_not_ice) << T << SR;