Lines Matching defs:SemaRef
896 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,
902 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI);
904 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation());
921 SemaRef.Context, TArg,
922 Arg.getScopeSpec().getWithLocInContext(SemaRef.Context),
937 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S,
941 SemaRef.LookupSingleName(S, Name, Loc, Sema::LookupOrdinaryName,
944 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
1690 ConstraintRefersToContainingTemplateChecker(Sema &SemaRef,
1693 : inherited(SemaRef), Friend(Friend), TemplateDepth(TemplateDepth) {}
3220 checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD,
3224 ASTContext &Context = SemaRef.getASTContext();
3235 SemaRef.Diag(TemplateArgs[1].getLocation(),
3250 SemaRef.Context.getTrivialTypeSourceInfo(
3258 SyntheticTemplateArgs.addArgument(SemaRef.getTrivialTemplateArgumentLoc(
3264 SemaRef.Diag(TemplateArgs[2].getLocation(),
3271 return SemaRef.CheckTemplateIdType(Converted[0].getAsTemplate(),
3292 SemaRef.Diag(TemplateArgs[0].getLocation(),
3312 if (auto CT = builtinCommonTypeImpl(SemaRef, BaseTemplate, TemplateLoc, Ts);
3316 TemplateArgument(CT), SemaRef.Context.getTrivialTypeSourceInfo(
3319 return SemaRef.CheckTemplateIdType(HasTypeMember, TemplateLoc, TAs);
4950 /// \param SemaRef the semantic analysis object for which we are performing
4972 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
4982 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, Param, Template,
4997 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(),
5000 if (SemaRef.SubstTemplateArgument(Output, TemplateArgLists, Output,
5012 /// \param SemaRef the semantic analysis object for which we are performing
5032 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
5037 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, Param, Template,
5049 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
5051 SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated);
5052 return SemaRef.SubstTemplateArgument(Param->getDefaultArgument(),
5059 /// \param SemaRef the semantic analysis object for which we are performing
5082 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
5088 SemaRef, TemplateLoc, TemplateParameter(Param), Template,
5099 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
5104 SemaRef.SubstNestedNameSpecifierLoc(QualifierLoc, TemplateArgLists);
5109 return SemaRef.SubstTemplateName(
10999 CurrentInstantiationRebuilder(Sema &SemaRef,
11002 : TreeTransform<CurrentInstantiationRebuilder>(SemaRef),