Home | History | Annotate | Download | only in Sema

Lines Matching refs:SemaRef

918 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,
924 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI);
926 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation());
943 SemaRef.Context, TArg,
944 Arg.getScopeSpec().getWithLocInContext(SemaRef.Context),
961 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S,
964 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
967 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
2092 Sema &SemaRef,
2094 : Base(SemaRef), MaterializedTypedefs(MaterializedTypedefs) {}
2099 ASTContext &Context = SemaRef.getASTContext();
2135 : SemaRef(S), Template(Template) {}
2137 Sema &SemaRef;
2143 SemaRef.Context.DeclarationNames.getCXXDeductionGuideName(Template);
2145 QualType DeducedType = SemaRef.Context.getTypeDeclType(Primary);
2156 LocalInstantiationScope Scope(SemaRef);
2185 SubstArgs.push_back(SemaRef.Context.getCanonicalTemplateArgument(
2186 SemaRef.Context.getInjectedTemplateArg(NewParam)));
2189 SemaRef.Context, InnerParams->getTemplateLoc(),
2218 TypeSourceInfo *NewTInfo = TLB.getTypeSourceInfo(SemaRef.Context, NewType);
2232 QualType Result = SemaRef.BuildFunctionType(DeducedType, ParamTypes, Loc,
2234 TypeSourceInfo *TSI = SemaRef.Context.getTrivialTypeSourceInfo(Result, Loc);
2243 SemaRef.Context, DC, Loc, Loc, nullptr, T,
2244 SemaRef.Context.getTrivialTypeSourceInfo(T, Loc), SC_None, nullptr);
2264 SemaRef.Context, DC, TTP->getBeginLoc(), TTP->getLocation(),
2274 SemaRef.Subst(ArgsAsWritten->getTemplateArgs(),
2277 SemaRef.AttachTypeConstraint(
2288 SemaRef.SubstType(TTP->getDefaultArgumentInfo(), Args,
2293 SemaRef.CurrentInstantiationScope->InstantiatedLocal(TemplateParam,
2311 cast<TemplateParmDecl>(SemaRef.SubstDecl(OldParam, DC, Args));
2353 QualType Result = SemaRef.BuildFunctionType(
2377 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(SemaRef, 0);
2379 SemaRef.SubstType(PackTL.getPatternLoc(), Args,
2383 SemaRef.CheckPackExpansion(NewDI, PackTL.getEllipsisLoc(),
2386 NewDI = SemaRef.SubstType(OldDI, Args, OldParam->getLocation(),
2395 NewDI = ExtractTypeForDeductionGuide(SemaRef, MaterializedTypedefs)
2405 NewDefArg = new (SemaRef.Context)
2407 ParamTy.getNonLValueExprType(SemaRef.Context),
2413 ParmVarDecl *NewParam = ParmVarDecl::Create(SemaRef.Context, DC,
2423 SemaRef.CurrentInstantiationScope->InstantiatedLocal(OldParam, NewParam);
2438 CXXDeductionGuideDecl::Create(SemaRef.Context, DC, LocStart, ES, Name,
2449 SemaRef.Context, DC, Loc, DeductionGuideName, TemplateParams, Guide);
3442 checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD,
3446 ASTContext &Context = SemaRef.getASTContext();
3455 SemaRef.Diag(TemplateArgs[1].getLocation(),
3465 SemaRef.Diag(TemplateArgs[2].getLocation(),
3479 SyntheticTemplateArgs.addArgument(SemaRef.getTrivialTemplateArgumentLoc(
3484 return SemaRef.CheckTemplateIdType(Converted[0].getAsTemplate(),
3501 SemaRef.Diag(TemplateArgs[0].getLocation(),
5069 /// \param SemaRef the semantic analysis object for which we are performing
5088 SubstDefaultTemplateArgument(Sema &SemaRef,
5099 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc,
5113 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
5115 SemaRef.SubstType(ArgType, TemplateArgLists,
5125 /// \param SemaRef the semantic analysis object for which we are performing
5145 SubstDefaultTemplateArgument(Sema &SemaRef,
5151 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc,
5165 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
5167 SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated);
5168 return SemaRef.SubstExpr(Param->getDefaultArgument(), TemplateArgLists);
5174 /// \param SemaRef the semantic analysis object for which we are performing
5197 SubstDefaultTemplateArgument(Sema &SemaRef,
5205 SemaRef, TemplateLoc, TemplateParameter(Param), Template, Converted,
5218 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
5223 SemaRef.SubstNestedNameSpecifierLoc(QualifierLoc, TemplateArgLists);
5228 return SemaRef.SubstTemplateName(
10755 CurrentInstantiationRebuilder(Sema &SemaRef,
10758 : TreeTransform<CurrentInstantiationRebuilder>(SemaRef),