Lines Matching refs:SemaRef

923 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,  in translateTemplateArgument()  argument
929 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI); in translateTemplateArgument()
931 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); in translateTemplateArgument()
948 SemaRef.Context, TArg, in translateTemplateArgument()
949 Arg.getScopeSpec().getWithLocInContext(SemaRef.Context), in translateTemplateArgument()
966 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S, in maybeDiagnoseTemplateParameterShadow() argument
969 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow()
972 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); in maybeDiagnoseTemplateParameterShadow()
2097 Sema &SemaRef, in ExtractTypeForDeductionGuide() argument
2099 : Base(SemaRef), MaterializedTypedefs(MaterializedTypedefs) {} in ExtractTypeForDeductionGuide()
2104 ASTContext &Context = SemaRef.getASTContext(); in TransformTypedefType()
2140 : SemaRef(S), Template(Template) {} in ConvertConstructorToDeductionGuideTransform()
2142 Sema &SemaRef; member
2148 SemaRef.Context.DeclarationNames.getCXXDeductionGuideName(Template);
2150 QualType DeducedType = SemaRef.Context.getTypeDeclType(Primary);
2161 LocalInstantiationScope Scope(SemaRef); in transformConstructor()
2190 SubstArgs.push_back(SemaRef.Context.getCanonicalTemplateArgument( in transformConstructor()
2191 SemaRef.Context.getInjectedTemplateArg(NewParam))); in transformConstructor()
2201 ExprResult E = SemaRef.SubstExpr(InnerRC, Args); in transformConstructor()
2208 SemaRef.Context, InnerParams->getTemplateLoc(), in transformConstructor()
2237 TypeSourceInfo *NewTInfo = TLB.getTypeSourceInfo(SemaRef.Context, NewType); in transformConstructor()
2251 QualType Result = SemaRef.BuildFunctionType(DeducedType, ParamTypes, Loc, in buildSimpleDeductionGuide()
2253 TypeSourceInfo *TSI = SemaRef.Context.getTrivialTypeSourceInfo(Result, Loc); in buildSimpleDeductionGuide()
2262 SemaRef.Context, DC, Loc, Loc, nullptr, T, in buildSimpleDeductionGuide()
2263 SemaRef.Context.getTrivialTypeSourceInfo(T, Loc), SC_None, nullptr); in buildSimpleDeductionGuide()
2283 SemaRef.Context, DC, TTP->getBeginLoc(), TTP->getLocation(), in transformTemplateParameter()
2290 SemaRef.SubstTypeConstraint(NewTTP, TC, Args); in transformTemplateParameter()
2293 SemaRef.SubstType(TTP->getDefaultArgumentInfo(), Args, in transformTemplateParameter()
2298 SemaRef.CurrentInstantiationScope->InstantiatedLocal(TemplateParam, in transformTemplateParameter()
2316 cast<TemplateParmDecl>(SemaRef.SubstDecl(OldParam, DC, Args)); in transformTemplateParameterImpl()
2358 QualType Result = SemaRef.BuildFunctionType( in transformFunctionProtoType()
2382 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(SemaRef, 0); in transformFunctionTypeParam()
2384 SemaRef.SubstType(PackTL.getPatternLoc(), Args, in transformFunctionTypeParam()
2388 SemaRef.CheckPackExpansion(NewDI, PackTL.getEllipsisLoc(), in transformFunctionTypeParam()
2391 NewDI = SemaRef.SubstType(OldDI, Args, OldParam->getLocation(), in transformFunctionTypeParam()
2400 NewDI = ExtractTypeForDeductionGuide(SemaRef, MaterializedTypedefs) in transformFunctionTypeParam()
2410 NewDefArg = new (SemaRef.Context) in transformFunctionTypeParam()
2412 ParamTy.getNonLValueExprType(SemaRef.Context), in transformFunctionTypeParam()
2418 ParmVarDecl *NewParam = ParmVarDecl::Create(SemaRef.Context, DC, in transformFunctionTypeParam()
2428 SemaRef.CurrentInstantiationScope->InstantiatedLocal(OldParam, NewParam); in transformFunctionTypeParam()
2443 CXXDeductionGuideDecl::Create(SemaRef.Context, DC, LocStart, ES, Name,
2454 SemaRef.Context, DC, Loc, DeductionGuideName, TemplateParams, Guide);
3498 checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD, in checkBuiltinTemplateIdType() argument
3502 ASTContext &Context = SemaRef.getASTContext(); in checkBuiltinTemplateIdType()
3511 SemaRef.Diag(TemplateArgs[1].getLocation(), in checkBuiltinTemplateIdType()
3521 SemaRef.Diag(TemplateArgs[2].getLocation(), in checkBuiltinTemplateIdType()
3535 SyntheticTemplateArgs.addArgument(SemaRef.getTrivialTemplateArgumentLoc( in checkBuiltinTemplateIdType()
3540 return SemaRef.CheckTemplateIdType(Converted[0].getAsTemplate(), in checkBuiltinTemplateIdType()
3557 SemaRef.Diag(TemplateArgs[0].getLocation(), in checkBuiltinTemplateIdType()
5146 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
5157 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, in SubstDefaultTemplateArgument()
5174 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(), in SubstDefaultTemplateArgument()
5177 SemaRef.SubstType(ArgType, TemplateArgLists, in SubstDefaultTemplateArgument()
5207 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
5213 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, in SubstDefaultTemplateArgument()
5227 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
5229 SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated); in SubstDefaultTemplateArgument()
5230 return SemaRef.SubstExpr(Param->getDefaultArgument(), TemplateArgLists); in SubstDefaultTemplateArgument()
5259 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
5267 SemaRef, TemplateLoc, TemplateParameter(Param), Template, Converted, in SubstDefaultTemplateArgument()
5280 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
5285 SemaRef.SubstNestedNameSpecifierLoc(QualifierLoc, TemplateArgLists); in SubstDefaultTemplateArgument()
5290 return SemaRef.SubstTemplateName( in SubstDefaultTemplateArgument()
10857 CurrentInstantiationRebuilder(Sema &SemaRef, in CurrentInstantiationRebuilder() argument
10860 : TreeTransform<CurrentInstantiationRebuilder>(SemaRef), in CurrentInstantiationRebuilder()