• Home
  • Raw
  • Download

Lines Matching refs:SemaRef

205     Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind,  in InstantiatingTemplate()  argument
209 : SemaRef(SemaRef), SavedInNonInstantiationSFINAEContext( in InstantiatingTemplate()
210 SemaRef.InNonInstantiationSFINAEContext) { in InstantiatingTemplate()
213 if (SemaRef.Diags.hasFatalErrorOccurred()) { in InstantiatingTemplate()
228 SemaRef.InNonInstantiationSFINAEContext = false; in InstantiatingTemplate()
229 SemaRef.ActiveTemplateInstantiations.push_back(Inst); in InstantiatingTemplate()
231 ++SemaRef.NonInstantiationEntries; in InstantiatingTemplate()
236 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, in InstantiatingTemplate() argument
238 : InstantiatingTemplate(SemaRef, in InstantiatingTemplate()
243 Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity, in InstantiatingTemplate() argument
246 SemaRef, ActiveTemplateInstantiation::ExceptionSpecInstantiation, in InstantiatingTemplate()
250 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate() argument
253 SemaRef, in InstantiatingTemplate()
259 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
264 : InstantiatingTemplate(SemaRef, Kind, PointOfInstantiation, in InstantiatingTemplate()
269 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
274 SemaRef, in InstantiatingTemplate()
280 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
285 SemaRef, in InstantiatingTemplate()
291 Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, in InstantiatingTemplate() argument
294 SemaRef, in InstantiatingTemplate()
300 Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, in InstantiatingTemplate() argument
304 SemaRef, in InstantiatingTemplate()
310 Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, in InstantiatingTemplate() argument
314 SemaRef, in InstantiatingTemplate()
320 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate() argument
324 SemaRef, ActiveTemplateInstantiation::DefaultTemplateArgumentChecking, in InstantiatingTemplate()
330 if (!SemaRef.ActiveTemplateInstantiations.back().isInstantiationRecord()) { in Clear()
331 assert(SemaRef.NonInstantiationEntries > 0); in Clear()
332 --SemaRef.NonInstantiationEntries; in Clear()
334 SemaRef.InNonInstantiationSFINAEContext in Clear()
338 assert(SemaRef.ActiveTemplateInstantiations.size() >= in Clear()
339 SemaRef.ActiveTemplateInstantiationLookupModules.size() && in Clear()
341 if (SemaRef.ActiveTemplateInstantiations.size() == in Clear()
342 SemaRef.ActiveTemplateInstantiationLookupModules.size()) { in Clear()
343 if (Module *M = SemaRef.ActiveTemplateInstantiationLookupModules.back()) in Clear()
344 SemaRef.LookupModulesCache.erase(M); in Clear()
345 SemaRef.ActiveTemplateInstantiationLookupModules.pop_back(); in Clear()
348 SemaRef.ActiveTemplateInstantiations.pop_back(); in Clear()
356 assert(SemaRef.NonInstantiationEntries <= in CheckInstantiationDepth()
357 SemaRef.ActiveTemplateInstantiations.size()); in CheckInstantiationDepth()
358 if ((SemaRef.ActiveTemplateInstantiations.size() - in CheckInstantiationDepth()
359 SemaRef.NonInstantiationEntries) in CheckInstantiationDepth()
360 <= SemaRef.getLangOpts().InstantiationDepth) in CheckInstantiationDepth()
363 SemaRef.Diag(PointOfInstantiation, in CheckInstantiationDepth()
365 << SemaRef.getLangOpts().InstantiationDepth in CheckInstantiationDepth()
367 SemaRef.Diag(PointOfInstantiation, diag::note_template_recursion_depth) in CheckInstantiationDepth()
368 << SemaRef.getLangOpts().InstantiationDepth; in CheckInstantiationDepth()
630 TemplateInstantiator(Sema &SemaRef, in TemplateInstantiator() argument
634 : inherited(SemaRef), TemplateArgs(TemplateArgs), Loc(Loc), in TemplateInstantiator()
671 SemaRef.CurrentInstantiationScope->MakeInstantiatedLocalArgPack(Pack); in ExpandingFunctionParameterPack()
677 = SemaRef.CurrentInstantiationScope->getPartiallySubstitutedPack()){ in ForgetPartiallySubstitutedPack()
696 = SemaRef.CurrentInstantiationScope->getPartiallySubstitutedPack()){ in RememberPartiallySubstitutedPack()
710 SemaRef.InstantiateAttrs(TemplateArgs, Old, New); in transformAttrs()
728 SemaRef.CurrentInstantiationScope->InstantiatedLocal(Old, New); in transformedLocalDecl()
733 SemaRef.PerformDependentDiagnostics(DC, TemplateArgs); in transformedLocalDecl()
823 LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); in TransformLambdaExpr()
896 return SemaRef.FindInstantiatedDecl(Loc, cast<NamedDecl>(D), TemplateArgs); in TransformDecl()
985 if (!SemaRef.isAcceptableTagRedeclaration(TD, Kind, /*isDefinition*/false, in RebuildElaboratedType()
987 SemaRef.Diag(TagLocation, diag::err_use_with_wrong_tag) in RebuildElaboratedType()
991 SemaRef.Diag(TD->getLocation(), diag::note_previous_use); in RebuildElaboratedType()
1090 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr()
1096 return new (SemaRef.Context) SubstNonTypeTemplateParmPackExpr(TargetType, in TransformTemplateParmRefExpr()
1160 type = parm->getExpansionType(SemaRef.ArgumentPackSubstitutionIndex); in transformNonTypeTemplateParmRef()
1163 type = SemaRef.SubstType( in transformNonTypeTemplateParmRef()
1167 type = SemaRef.SubstType(parm->getType(), TemplateArgs, in transformNonTypeTemplateParmRef()
1172 result = SemaRef.BuildExpressionFromDeclTemplateArgument(arg, type, loc); in transformNonTypeTemplateParmRef()
1176 result = SemaRef.BuildExpressionFromIntegralTemplateArgument(arg, loc); in transformNonTypeTemplateParmRef()
1185 return new (SemaRef.Context) SubstNonTypeTemplateParmExpr( in transformNonTypeTemplateParmRef()
1301 return SemaRef.BuildCXXDefaultArgExpr(E->getUsedLocation(), in TransformCXXDefaultArgExpr()
1313 LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); in TransformFunctionProtoType()
1323 return SemaRef.SubstParmVarDecl(OldParm, TemplateArgs, indexAdjustment, in TransformFunctionTypeParam()