Lines Matching refs:SemaRef

381     Sema &SemaRef, CodeSynthesisContext::SynthesisKind Kind,  in InstantiatingTemplate()  argument
385 : SemaRef(SemaRef) { in InstantiatingTemplate()
389 if (SemaRef.Diags.hasFatalErrorOccurred() && in InstantiatingTemplate()
390 SemaRef.hasUncompilableErrorOccurred()) { in InstantiatingTemplate()
405 SemaRef.pushCodeSynthesisContext(Inst); in InstantiatingTemplate()
408 !SemaRef.InstantiatingSpecializations in InstantiatingTemplate()
411 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); in InstantiatingTemplate()
416 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, in InstantiatingTemplate() argument
418 : InstantiatingTemplate(SemaRef, in InstantiatingTemplate()
423 Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity, in InstantiatingTemplate() argument
426 SemaRef, CodeSynthesisContext::ExceptionSpecInstantiation, in InstantiatingTemplate()
430 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateParameter Param, in InstantiatingTemplate() argument
434 SemaRef, in InstantiatingTemplate()
440 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
445 : InstantiatingTemplate(SemaRef, Kind, PointOfInstantiation, in InstantiatingTemplate()
454 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
459 SemaRef, in InstantiatingTemplate()
465 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
470 SemaRef, in InstantiatingTemplate()
476 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
481 SemaRef, in InstantiatingTemplate()
487 Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, in InstantiatingTemplate() argument
490 SemaRef, in InstantiatingTemplate()
496 Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, in InstantiatingTemplate() argument
500 SemaRef, in InstantiatingTemplate()
506 Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, in InstantiatingTemplate() argument
510 SemaRef, in InstantiatingTemplate()
516 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate() argument
520 SemaRef, CodeSynthesisContext::DefaultTemplateArgumentChecking, in InstantiatingTemplate()
525 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
529 SemaRef, CodeSynthesisContext::RequirementInstantiation, in InstantiatingTemplate()
535 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
539 SemaRef, CodeSynthesisContext::NestedRequirementConstraintsCheck, in InstantiatingTemplate()
544 Sema &SemaRef, SourceLocation PointOfInstantiation, const RequiresExpr *RE, in InstantiatingTemplate() argument
547 SemaRef, CodeSynthesisContext::RequirementParameterInstantiation, in InstantiatingTemplate()
553 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
557 SemaRef, CodeSynthesisContext::ConstraintsCheck, in InstantiatingTemplate()
562 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
566 SemaRef, CodeSynthesisContext::ConstraintSubstitution, in InstantiatingTemplate()
571 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
575 SemaRef, CodeSynthesisContext::ConstraintNormalization, in InstantiatingTemplate()
579 Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument
583 SemaRef, CodeSynthesisContext::ParameterMappingSubstitution, in InstantiatingTemplate()
634 auto &Active = SemaRef.CodeSynthesisContexts.back(); in Clear()
636 SemaRef.InstantiatingSpecializations.erase( in Clear()
640 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, in Clear()
641 SemaRef.CodeSynthesisContexts.back()); in Clear()
643 SemaRef.popCodeSynthesisContext(); in Clear()
664 assert(SemaRef.NonInstantiationEntries <= in CheckInstantiationDepth()
665 SemaRef.CodeSynthesisContexts.size()); in CheckInstantiationDepth()
666 if ((SemaRef.CodeSynthesisContexts.size() - in CheckInstantiationDepth()
667 SemaRef.NonInstantiationEntries) in CheckInstantiationDepth()
668 <= SemaRef.getLangOpts().InstantiationDepth) in CheckInstantiationDepth()
671 SemaRef.Diag(PointOfInstantiation, in CheckInstantiationDepth()
673 << SemaRef.getLangOpts().InstantiationDepth in CheckInstantiationDepth()
675 SemaRef.Diag(PointOfInstantiation, diag::note_template_recursion_depth) in CheckInstantiationDepth()
676 << SemaRef.getLangOpts().InstantiationDepth; in CheckInstantiationDepth()
1103 TemplateInstantiator(Sema &SemaRef, in TemplateInstantiator() argument
1106 : inherited(SemaRef), TemplateArgs(TemplateArgs), Loc(Loc), in TemplateInstantiator()
1161 SemaRef.CurrentInstantiationScope->MakeInstantiatedLocalArgPack(Pack); in ExpandingFunctionParameterPack()
1167 = SemaRef.CurrentInstantiationScope->getPartiallySubstitutedPack()){ in ForgetPartiallySubstitutedPack()
1186 = SemaRef.CurrentInstantiationScope->getPartiallySubstitutedPack()){ in RememberPartiallySubstitutedPack()
1200 SemaRef.InstantiateAttrs(TemplateArgs, Old, New); in transformAttrs()
1205 SemaRef.CurrentInstantiationScope->MakeInstantiatedLocalArgPack(Old); in transformedLocalDecl()
1207 SemaRef.CurrentInstantiationScope->InstantiatedLocalPackArg( in transformedLocalDecl()
1230 SemaRef.CurrentInstantiationScope->InstantiatedLocal(Old, New); in transformedLocalDecl()
1235 SemaRef.PerformDependentDiagnostics(DC, TemplateArgs); in transformedLocalDecl()
1337 LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); in TransformLambdaExpr()
1350 if (SemaRef.SubstDefaultArgument(EqualLoc, PVD, TemplateArgs)) { in TransformLambdaExpr()
1354 ExprResult ErrorResult = SemaRef.CreateRecoveryExpr( in TransformLambdaExpr()
1366 LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); in TransformRequiresExpr()
1374 Sema::SFINAETrap Trap(SemaRef); in TransformRequiresExpr()
1377 SemaRef.PerformDependentDiagnostics(E->getBody(), TemplateArgs); in TransformRequiresExpr()
1501 return SemaRef.FindInstantiatedDecl(Loc, cast<NamedDecl>(D), TemplateArgs); in TransformDecl()
1590 if (!SemaRef.isAcceptableTagRedeclaration(TD, Kind, /*isDefinition*/false, in RebuildElaboratedType()
1592 SemaRef.Diag(TagLocation, diag::err_use_with_wrong_tag) in RebuildElaboratedType()
1596 SemaRef.Diag(TD->getLocation(), diag::note_previous_use); in RebuildElaboratedType()
1731 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr()
1737 QualType ExprType = TargetType.getNonLValueExprType(SemaRef.Context); in TransformTemplateParmRefExpr()
1741 return new (SemaRef.Context) SubstNonTypeTemplateParmPackExpr( in TransformTemplateParmRefExpr()
1781 T = parm->getExpansionType(SemaRef.ArgumentPackSubstitutionIndex); in transformNonTypeTemplateParmRef()
1786 return SemaRef.SubstType(T, TemplateArgs, loc, parm->getDeclName()); in transformNonTypeTemplateParmRef()
1828 result = SemaRef.BuildExpressionFromDeclTemplateArgument(arg, paramType, loc); in transformNonTypeTemplateParmRef()
1831 result = SemaRef.BuildExpressionFromIntegralTemplateArgument(arg, loc); in transformNonTypeTemplateParmRef()
1833 SemaRef.Context.hasSameType(result.get()->getType(), in transformNonTypeTemplateParmRef()
1842 return new (SemaRef.Context) SubstNonTypeTemplateParmExpr( in transformNonTypeTemplateParmRef()
1895 if (SemaRef in TransformSubstNonTypeTemplateParmExpr()
2004 return SemaRef.BuildCXXDefaultArgExpr( in TransformCXXDefaultArgExpr()
2016 LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); in TransformFunctionProtoType()
2024 auto NewParm = SemaRef.SubstParmVarDecl( in TransformFunctionTypeParam()
2027 if (NewParm && SemaRef.getLangOpts().OpenCL) in TransformFunctionTypeParam()
2028 SemaRef.deduceOpenCLAddressSpace(NewParm); in TransformFunctionTypeParam()
2045 SemaRef.Context.getQualifiedType(Replacement.getUnqualifiedType(), RQs); in BuildSubstTemplateTypeParmType()
2049 TLB.pushTrivial(SemaRef.Context, Replacement, NameLoc); in BuildSubstTemplateTypeParmType()
2209 Sema::InstantiatingTemplate TypeInst(SemaRef, KWLoc, in TransformRequiresTypeParams()
2212 Sema::SFINAETrap Trap(SemaRef); in TransformRequiresTypeParams()
2224 SemaRef, Info, [&](llvm::raw_ostream &OS) { OS << *FailedDecl; }))); in TransformRequiresTypeParams()
2243 Sema::SFINAETrap Trap(SemaRef); in TransformTypeRequirement()
2245 Sema::InstantiatingTemplate TypeInst(SemaRef, in TransformTypeRequirement()
2252 return RebuildTypeRequirement(createSubstDiag(SemaRef, Info, in TransformTypeRequirement()
2254 Req->getType()->getType().print(OS, SemaRef.getPrintingPolicy()); in TransformTypeRequirement()
2264 Sema::SFINAETrap Trap(SemaRef); in TransformExprRequirement()
2273 Sema::InstantiatingTemplate ExprInst(SemaRef, E->getBeginLoc(), Req, Info, in TransformExprRequirement()
2280 TransExprRes = SemaRef.CheckPlaceholderExpr(TransExprRes.get()); in TransformExprRequirement()
2282 TransExpr = createSubstDiag(SemaRef, Info, [&](llvm::raw_ostream &OS) { in TransformExprRequirement()
2283 E->printPretty(OS, nullptr, SemaRef.getPrintingPolicy()); in TransformExprRequirement()
2299 Sema::InstantiatingTemplate TPLInst(SemaRef, OrigTPL->getTemplateLoc(), in TransformExprRequirement()
2305 TransRetReq.emplace(createSubstDiag(SemaRef, Info, in TransformExprRequirement()
2308 ->printPretty(OS, nullptr, SemaRef.getPrintingPolicy()); in TransformExprRequirement()
2335 Sema::InstantiatingTemplate ReqInst(SemaRef, in TransformNestedRequirement()
2345 SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated); in TransformNestedRequirement()
2346 Sema::SFINAETrap Trap(SemaRef); in TransformNestedRequirement()
2347 Sema::InstantiatingTemplate ConstrInst(SemaRef, in TransformNestedRequirement()
2353 if (!SemaRef.CheckConstraintSatisfaction( in TransformNestedRequirement()
2363 return new (SemaRef.Context) in TransformNestedRequirement()
2370 SemaRef.getPrintingPolicy()); in TransformNestedRequirement()
2371 char *EntityBuf = new (SemaRef.Context) char[Entity.size()]; in TransformNestedRequirement()
2373 return new (SemaRef.Context) concepts::NestedRequirement( in TransformNestedRequirement()
2374 SemaRef.Context, StringRef(EntityBuf, Entity.size()), Satisfaction); in TransformNestedRequirement()
2376 return new (SemaRef.Context) concepts::NestedRequirement( in TransformNestedRequirement()
2377 SemaRef.Context, TransConstraint.get(), Satisfaction); in TransformNestedRequirement()