reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  831       return getSema().CheckParameterPacksForExpansion(EllipsisLoc,
 1013       TemplateDeclInstantiator  DeclInstantiator(getSema(),
 1031   getSema().MarkDeclarationsReferencedInType(Loc, T);
 1064         Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1081   Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs);
 1081   Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs);
 1085   getSema().CurrentInstantiationScope->InstantiatedLocal(D, Inst);
 1096       = cast<TemplateTypeParmType>(getSema().Context.getTypeDeclType(TTPD));
 1106         if (getSema().ArgumentPackSubstitutionIndex == -1)
 1109         Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1120       getSema().Diag(Loc, diag::err_nested_name_spec_non_tag) << T;
 1137     getSema().CurrentInstantiationScope->InstantiatedLocal(ExceptionDecl, Var);
 1146     getSema().CurrentInstantiationScope->InstantiatedLocal(ExceptionDecl, Var);
 1204         if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1208           return getSema().Context.getSubstTemplateTemplateParmPack(TTP, Arg);
 1211         Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1219       Template = getSema().Context.getSubstTemplateTemplateParm(TTP, Template);
 1226     if (getSema().ArgumentPackSubstitutionIndex == -1)
 1230     Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1244   return getSema().BuildPredefinedExpr(E->getLocation(), E->getIdentKind());
 1280     if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1296     Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1310   if (getSema().CheckLoopHintExpr(TransformedExpr, LH->getLocation()))
 1315   return LoopHintAttr::CreateImplicit(getSema().Context, LH->getOption(),
 1342              getSema().FindInstantiatedDecl(loc, VD, TemplateArgs));
 1385   if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1391   Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1400   return getSema().BuildDeclarationNameExpr(CXXScopeSpec(), NameInfo, PD);
 1405   if (getSema().ArgumentPackSubstitutionIndex != -1) {
 1407     VarDecl *D = E->getExpansion(getSema().ArgumentPackSubstitutionIndex);
 1431       FunctionParmPackExpr::Create(getSema().Context, T, E->getParameterPack(),
 1433   getSema().MarkFunctionParmPackReferenced(PackExpr);
 1442     = getSema().CurrentInstantiationScope->findInstantiationOf(PD);
 1449     if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1453       auto *PackExpr = FunctionParmPackExpr::Create(getSema().Context, T, PD,
 1455       getSema().MarkFunctionParmPackReferenced(PackExpr);
 1459     TransformedDecl = (*Pack)[getSema().ArgumentPackSubstitutionIndex];
 1546       if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1551           = getSema().Context.getSubstTemplateTypeParmPackType(T, Arg);
 1558       Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1568       = getSema().Context.getSubstTemplateTypeParmType(T, Replacement);
 1584   QualType Result = getSema().Context.getTemplateTypeParmType(
 1596   if (getSema().ArgumentPackSubstitutionIndex == -1) {
 1605   Arg = getPackSubstitutedTemplateArgument(getSema(), Arg);
 1608   Result = getSema().Context.getSubstTemplateTypeParmType(
tools/clang/lib/Sema/TreeTransform.h
 1154     return getSema().CheckPackExpansion(Pattern, PatternRange, EllipsisLoc,
 1214     return getSema().Context.getSubstTemplateTemplateParmPack(Param, ArgPack);
 1225     return getSema().ActOnCompoundStmt(LBraceLoc, RBraceLoc, Statements,
 1238     return getSema().ActOnCaseStmt(CaseLoc, LHS, EllipsisLoc, RHS,
 1247     getSema().ActOnCaseStmtBody(S, Body);
 1258     return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt,
 1288     return getSema().ActOnIfStmt(IfLoc, IsConstexpr, Init, Cond, Then,
 1298     return getSema().ActOnStartOfSwitchStmt(SwitchLoc, Init, Cond);
 1307     return getSema().ActOnFinishSwitchStmt(SwitchLoc, Switch, Body);
 1316     return getSema().ActOnWhileStmt(WhileLoc, Cond, Body);
 1326     return getSema().ActOnDoStmt(DoLoc, Body, WhileLoc, LParenLoc,
 1338     return getSema().ActOnForStmt(ForLoc, LParenLoc, Init, Cond,
 1348     return getSema().ActOnGotoStmt(GotoLoc, LabelLoc, Label);
 1358     return getSema().ActOnIndirectGotoStmt(GotoLoc, StarLoc, Target);
 1366     return getSema().BuildReturnStmt(ReturnLoc, Result);
 1375     Sema::DeclGroupPtrTy DG = getSema().BuildDeclaratorGroup(Decls);
 1376     return getSema().ActOnDeclStmt(DG, StartLoc, EndLoc);
 1390     return getSema().ActOnGCCAsmStmt(AsmLoc, IsSimple, IsVolatile, NumOutputs,
 1407     return getSema().ActOnMSAsmStmt(AsmLoc, LBraceLoc, AsmToks, AsmString,
 1418     return getSema().BuildCoreturnStmt(CoreturnLoc, Result, IsImplicit);
 1427     return getSema().BuildResolvedCoawaitExpr(CoawaitLoc, Result, IsImplicit);
 1437     return getSema().BuildUnresolvedCoawaitExpr(CoawaitLoc, Result, Lookup);
 1445     return getSema().BuildCoyieldExpr(CoyieldLoc, Result);
 1449     return getSema().BuildCoroutineBodyStmt(Args);
 1460     return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts,
 1470     return getSema().BuildObjCExceptionDecl(TInfo, T,
 1484     return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc,
 1494     return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body);
 1503     return getSema().BuildObjCAtThrowStmt(AtLoc, Operand);
 1516     return getSema().ActOnOpenMPExecutableDirective(
 1530     return getSema().ActOnOpenMPIfClause(NameModifier, Condition, StartLoc,
 1542     return getSema().ActOnOpenMPFinalClause(Condition, StartLoc, LParenLoc,
 1554     return getSema().ActOnOpenMPNumThreadsClause(NumThreads, StartLoc,
 1565     return getSema().ActOnOpenMPSafelenClause(Len, StartLoc, LParenLoc, EndLoc);
 1575     return getSema().ActOnOpenMPSimdlenClause(Len, StartLoc, LParenLoc, EndLoc);
 1585     return getSema().ActOnOpenMPAllocatorClause(A, StartLoc, LParenLoc, EndLoc);
 1595     return getSema().ActOnOpenMPCollapseClause(Num, StartLoc, LParenLoc,
 1608     return getSema().ActOnOpenMPDefaultClause(Kind, KindKwLoc,
 1621     return getSema().ActOnOpenMPProcBindClause(Kind, KindKwLoc,
 1634     return getSema().ActOnOpenMPScheduleClause(
 1646     return getSema().ActOnOpenMPOrderedClause(StartLoc, EndLoc, LParenLoc, Num);
 1657     return getSema().ActOnOpenMPPrivateClause(VarList, StartLoc, LParenLoc,
 1669     return getSema().ActOnOpenMPFirstprivateClause(VarList, StartLoc, LParenLoc,
 1681     return getSema().ActOnOpenMPLastprivateClause(VarList, StartLoc, LParenLoc,
 1693     return getSema().ActOnOpenMPSharedClause(VarList, StartLoc, LParenLoc,
 1709     return getSema().ActOnOpenMPReductionClause(
 1724     return getSema().ActOnOpenMPTaskReductionClause(
 1740     return getSema().ActOnOpenMPInReductionClause(
 1756     return getSema().ActOnOpenMPLinearClause(VarList, Step, StartLoc, LParenLoc,
 1770     return getSema().ActOnOpenMPAlignedClause(VarList, Alignment, StartLoc,
 1782     return getSema().ActOnOpenMPCopyinClause(VarList, StartLoc, LParenLoc,
 1794     return getSema().ActOnOpenMPCopyprivateClause(VarList, StartLoc, LParenLoc,
 1806     return getSema().ActOnOpenMPFlushClause(VarList, StartLoc, LParenLoc,
 1819     return getSema().ActOnOpenMPDependClause(DepKind, DepLoc, ColonLoc, VarList,
 1830     return getSema().ActOnOpenMPDeviceClause(Device, StartLoc, LParenLoc,
 1845     return getSema().ActOnOpenMPMapClause(MapTypeModifiers, MapTypeModifiersLoc,
 1860     return getSema().ActOnOpenMPAllocateClause(Allocate, VarList, StartLoc,
 1871     return getSema().ActOnOpenMPNumTeamsClause(NumTeams, StartLoc, LParenLoc,
 1883     return getSema().ActOnOpenMPThreadLimitClause(ThreadLimit, StartLoc,
 1894     return getSema().ActOnOpenMPPriorityClause(Priority, StartLoc, LParenLoc,
 1905     return getSema().ActOnOpenMPGrainsizeClause(Grainsize, StartLoc, LParenLoc,
 1916     return getSema().ActOnOpenMPNumTasksClause(NumTasks, StartLoc, LParenLoc,
 1927     return getSema().ActOnOpenMPHintClause(Hint, StartLoc, LParenLoc, EndLoc);
 1939     return getSema().ActOnOpenMPDistScheduleClause(
 1952     return getSema().ActOnOpenMPToClause(VarList, MapperIdScopeSpec, MapperId,
 1965     return getSema().ActOnOpenMPFromClause(VarList, MapperIdScopeSpec, MapperId,
 1975     return getSema().ActOnOpenMPUseDevicePtrClause(VarList, Locs);
 1984     return getSema().ActOnOpenMPIsDevicePtrClause(VarList, Locs);
 1993     return getSema().ActOnObjCAtSynchronizedOperand(atLoc, object);
 2002     return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body);
 2011     return getSema().ActOnObjCAutoreleasePoolStmt(AtLoc, Body);
 2023     StmtResult ForEachStmt = getSema().ActOnObjCForCollectionStmt(ForLoc,
 2030     return getSema().FinishObjCForCollectionStmt(ForEachStmt.get(), Body);
 2042     VarDecl *Var = getSema().BuildExceptionDeclaration(nullptr, Declarator,
 2045       getSema().CurContext->addDecl(Var);
 2056     return Owned(new (getSema().Context) CXXCatchStmt(CatchLoc, ExceptionDecl,
 2066     return getSema().ActOnCXXTryBlock(TryLoc, TryBlock, Handlers);
 2097             return getSema().ActOnObjCForCollectionStmt(ForLoc, LoopVar,
 2104     return getSema().BuildCXXForRangeStmt(ForLoc, CoawaitLoc, Init, ColonLoc,
 2118     return getSema().BuildMSDependentExistsStmt(KeywordLoc, IsIfExists,
 2127     return getSema().FinishCXXForRangeStmt(ForRange, Body);
 2132     return getSema().ActOnSEHTryBlock(IsCXXTry, TryLoc, TryBlock, Handler);
 2137     return getSema().ActOnSEHExceptBlock(Loc, FilterExpr, Block);
 2141     return SEHFinallyStmt::Create(getSema().getASTContext(), Loc, Block);
 2150     return getSema().BuildPredefinedExpr(Loc, IK);
 2160     return getSema().BuildDeclarationNameExpr(SS, R, RequiresADL);
 2175     return getSema().BuildDeclarationNameExpr(SS, NameInfo, VD, Found,
 2185     return getSema().ActOnParenExpr(LParen, RParen, SubExpr);
 2208     return getSema().BuildUnaryOp(/*Scope=*/nullptr, OpLoc, Opc, SubExpr);
 2219     return getSema().BuildBuiltinOffsetOf(OperatorLoc, Type, Components,
 2232     return getSema().CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, R);
 2244       = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind);
 2259     return getSema().ActOnArraySubscriptExpr(/*Scope=*/nullptr, LHS,
 2272     return getSema().ActOnOMPArraySectionExpr(Base, LBracketLoc, LowerBound,
 2284     return getSema().BuildCallExpr(/*Scope=*/nullptr, Callee, LParenLoc, Args,
 2301     ExprResult BaseResult = getSema().PerformMemberExprBaseConversion(Base,
 2311         getSema().PerformObjectMemberConversion(BaseResult.get(),
 2319       return getSema().BuildFieldReferenceExpr(
 2335     LookupResult R(getSema(), MemberNameInfo, Sema::LookupMemberName);
 2339     return getSema().BuildMemberReferenceExpr(Base, BaseType, OpLoc, isArrow,
 2353     return getSema().BuildBinOp(/*Scope=*/nullptr, OpLoc, Opc, LHS, RHS);
 2363     return getSema().CreateOverloadedBinOp(OpLoc, Opcode, UnqualLookups, LHS,
 2376     return getSema().ActOnConditionalOp(QuestionLoc, ColonLoc, Cond,
 2388     return getSema().BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc,
 2400     return getSema().BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc,
 2415     return getSema().BuildMemberReferenceExpr(Base, Base->getType(),
 2468     return getSema().BuildVAArgExpr(BuiltinLoc,
 2480     return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, SubExprs);
 2490     return getSema().ActOnAddrLabel(AmpAmpLoc, LabelLoc, Label);
 2500     return getSema().ActOnStmtExpr(LParenLoc, SubStmt, RParenLoc);
 2525     return getSema().CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc,
 2595     return getSema().BuildCXXNamedCast(OpLoc, tok::kw_static_cast,
 2612     return getSema().BuildCXXNamedCast(OpLoc, tok::kw_dynamic_cast,
 2629     return getSema().BuildCXXNamedCast(OpLoc, tok::kw_reinterpret_cast,
 2646     return getSema().BuildCXXNamedCast(OpLoc, tok::kw_const_cast,
 2661     return getSema().BuildCXXTypeConstructExpr(TInfo, LParenLoc,
 2673     return getSema().BuildBuiltinBitCastExpr(KWLoc, TSI, Sub, RParenLoc);
 2684     return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
 2697     return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
 2709     return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
 2721     return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
 2733     return getSema().BuildCXXThisExpr(ThisLoc, ThisType, isImplicit);
 2742     return getSema().BuildCXXThrow(ThrowLoc, Sub, IsThrownVariableInScope);
 2751     return CXXDefaultArgExpr::Create(getSema().Context, Loc, Param,
 2752                                      getSema().CurContext);
 2762     return CXXDefaultInitExpr::Create(getSema().Context, Loc, Field,
 2763                                       getSema().CurContext);
 2773     return getSema().BuildCXXTypeConstructExpr(
 2792     return getSema().BuildCXXNew(StartLoc, UseGlobal,
 2812     return getSema().ActOnCXXDelete(StartLoc, IsGlobalDelete, IsArrayForm,
 2824     return getSema().BuildTypeTrait(Trait, StartLoc, Args, RParenLoc);
 2836     return getSema().BuildArrayTypeTrait(Trait, StartLoc, TSInfo, DimExpr, RParenLoc);
 2847     return getSema().BuildExpressionTrait(Trait, StartLoc, Queried, RParenLoc);
 2866       return getSema().BuildQualifiedTemplateIdExpr(SS, TemplateKWLoc, NameInfo,
 2869     return getSema().BuildQualifiedDeclarationNameExpr(
 2882     return getSema().BuildTemplateIdExpr(SS, TemplateKWLoc, R, RequiresADL,
 2902     if (getSema().CompleteConstructorCall(Constructor, Args, Loc,
 2906     return getSema().BuildCXXConstructExpr(Loc, T, Constructor,
 2922     return new (getSema().Context) CXXInheritedCtorInitExpr(
 2935     return getSema().BuildCXXTypeConstructExpr(
 2948     return getSema().BuildCXXTypeConstructExpr(TSInfo, LParenLoc, Args,
 3026     return getSema().BuildSourceLocExpr(Kind, BuiltinLoc, RPLoc, ParentContext);
 3039     ExprResult Result = getSema().CheckConceptTemplateId(SS, TemplateKWLoc,
 3053     return getSema().BuildObjCBoxedExpr(SR, ValueExpr);
 3062     return getSema().BuildObjCArrayLiteral(Range,
 3070     return  getSema().BuildObjCSubscriptExpression(RB, Base, Key,
 3080     return getSema().BuildObjCDictionaryLiteral(Range, Elements);
 3155     ExprResult Result = getSema().BuildMemberReferenceExpr(
 3175     return getSema().BuildMemberReferenceExpr(BaseArg, BaseArg->getType(),
 3196       new (getSema().Context) ObjCPropertyRefExpr(Getter, Setter, T,
 3208     DeclarationNameInfo NameInfo(&getSema().Context.Idents.get("isa"), IsaLoc);
 3209     return getSema().BuildMemberReferenceExpr(BaseArg, BaseArg->getType(),
 3269         = getSema().CheckPackExpansion(Pattern.getSourceExpression(),
 3295             = getSema().CheckPackExpansion(Pattern.getTypeSourceInfo(),
 3313     return getSema().CheckPackExpansion(Pattern, EllipsisLoc, NumExpansions);
 3325     return getSema().BuildCXXFoldExpr(LParenLoc, LHS, Operator, EllipsisLoc,
 3335     return getSema().BuildEmptyCXXFoldExpr(EllipsisLoc, Operator);
 3348     return getSema().BuildAtomicExpr(Range, Range, RParenLoc, SubExprs, Op,
 3400         E = getSema().ActOnStmtExprResult(E);
 3401       return getSema().ActOnExprStmt(E, SDK == SDK_Discarded);
 3501       getSema(), EnterExpressionEvaluationContext::InitList,
 3547       getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
 3567         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 3591         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
 3651     return getSema().ActOnConditionVariable(ConditionVar, Loc, Kind);
 3660     return getSema().ActOnCondition(nullptr, Loc, CondExpr.get(), Kind);
 4034         getSema(),
 4148         = getSema().getTemplateArgumentPackExpansionPattern(
 4152       getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
 4173         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 4189         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
 4245   TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(T,
 4298   TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(T,
 5040     TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(
 5198             Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
 5245         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 5277       getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
 5294           Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
 5301                 getSema().getASTContext().getPackExpansionType(NewType, None);
 5337       Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 5347       NewType = getSema().Context.getPackExpansionType(NewType,
 5485         getSema(), Sema::ExpressionEvaluationContext::ConstantEvaluated);
 5492         getSema().ActOnNoexceptSpec(Loc, NoexceptExpr.get(), EST);
 5534         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 5547         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), ArgIdx);
 5712   E = getSema().ActOnDecltypeExpression(E.get());
 6116       = getSema().Context.getDependentTemplateSpecializationType(
 6534         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
 6555         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), ArgIdx);
 6656   Sema::CompoundScopeRAII CompoundScope(getSema());
 6843     Then = new (getSema().Context) NullStmt(S->getThen()->getBeginLoc());
 6946   if (getSema().getLangOpts().OpenMP)
 6947     getSema().startOpenMPLoop();
 6956   if (getSema().getLangOpts().OpenMP && Init.isUsable())
 6957     getSema().ActOnOpenMPLoopInitialization(S->getForLoc(), Init.get());
 6971   Sema::FullExprArg FullInc(getSema().MakeFullDiscardedValueExpr(Inc.get()));
 7729   switch (getSema().CheckMicrosoftIfExistsSymbol(/*S=*/nullptr, SS, NameInfo)) {
 7734     return new (getSema().Context) NullStmt(S->getKeywordLoc());
 7740     return new (getSema().Context) NullStmt(S->getKeywordLoc());
 7881       getDerived().getSema().StartOpenMPClause((*I)->getClauseKind());
 7883       getDerived().getSema().EndOpenMPClause();
 7892     getDerived().getSema().ActOnOpenMPRegionStart(D->getDirectiveKind(),
 7896       Sema::CompoundScopeRAII CompoundScope(getSema());
 7901         getDerived().getSema().ActOnOpenMPRegionEnd(Body, TClauses);
 7932   getDerived().getSema().StartOpenMPDSABlock(OMPD_parallel, DirName, nullptr,
 7935   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7943   getDerived().getSema().StartOpenMPDSABlock(OMPD_simd, DirName, nullptr,
 7946   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7954   getDerived().getSema().StartOpenMPDSABlock(OMPD_for, DirName, nullptr,
 7957   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7965   getDerived().getSema().StartOpenMPDSABlock(OMPD_for_simd, DirName, nullptr,
 7968   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7976   getDerived().getSema().StartOpenMPDSABlock(OMPD_sections, DirName, nullptr,
 7979   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7987   getDerived().getSema().StartOpenMPDSABlock(OMPD_section, DirName, nullptr,
 7990   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 7998   getDerived().getSema().StartOpenMPDSABlock(OMPD_single, DirName, nullptr,
 8001   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8009   getDerived().getSema().StartOpenMPDSABlock(OMPD_master, DirName, nullptr,
 8012   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8019   getDerived().getSema().StartOpenMPDSABlock(
 8022   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8030   getDerived().getSema().StartOpenMPDSABlock(OMPD_parallel_for, DirName,
 8033   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8041   getDerived().getSema().StartOpenMPDSABlock(OMPD_parallel_for_simd, DirName,
 8044   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8052   getDerived().getSema().StartOpenMPDSABlock(OMPD_parallel_sections, DirName,
 8055   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8063   getDerived().getSema().StartOpenMPDSABlock(OMPD_task, DirName, nullptr,
 8066   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8074   getDerived().getSema().StartOpenMPDSABlock(OMPD_taskyield, DirName, nullptr,
 8077   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8085   getDerived().getSema().StartOpenMPDSABlock(OMPD_barrier, DirName, nullptr,
 8088   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8096   getDerived().getSema().StartOpenMPDSABlock(OMPD_taskwait, DirName, nullptr,
 8099   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8107   getDerived().getSema().StartOpenMPDSABlock(OMPD_taskgroup, DirName, nullptr,
 8110   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8118   getDerived().getSema().StartOpenMPDSABlock(OMPD_flush, DirName, nullptr,
 8121   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8129   getDerived().getSema().StartOpenMPDSABlock(OMPD_ordered, DirName, nullptr,
 8132   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8140   getDerived().getSema().StartOpenMPDSABlock(OMPD_atomic, DirName, nullptr,
 8143   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8151   getDerived().getSema().StartOpenMPDSABlock(OMPD_target, DirName, nullptr,
 8154   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8162   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_data, DirName, nullptr,
 8165   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8173   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_enter_data, DirName,
 8176   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8184   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_exit_data, DirName,
 8187   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8195   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_parallel, DirName,
 8198   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8206   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_parallel_for, DirName,
 8209   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8217   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_update, DirName,
 8220   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8228   getDerived().getSema().StartOpenMPDSABlock(OMPD_teams, DirName, nullptr,
 8231   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8239   getDerived().getSema().StartOpenMPDSABlock(OMPD_cancellation_point, DirName,
 8242   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8250   getDerived().getSema().StartOpenMPDSABlock(OMPD_cancel, DirName, nullptr,
 8253   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8261   getDerived().getSema().StartOpenMPDSABlock(OMPD_taskloop, DirName, nullptr,
 8264   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8272   getDerived().getSema().StartOpenMPDSABlock(OMPD_taskloop_simd, DirName,
 8275   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8283   getDerived().getSema().StartOpenMPDSABlock(OMPD_master_taskloop, DirName,
 8286   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8294   getDerived().getSema().StartOpenMPDSABlock(OMPD_master_taskloop_simd, DirName,
 8297   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8305   getDerived().getSema().StartOpenMPDSABlock(
 8308   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8316   getDerived().getSema().StartOpenMPDSABlock(OMPD_distribute, DirName, nullptr,
 8319   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8327   getDerived().getSema().StartOpenMPDSABlock(
 8330   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8339   getDerived().getSema().StartOpenMPDSABlock(
 8342   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8350   getDerived().getSema().StartOpenMPDSABlock(OMPD_distribute_simd, DirName,
 8353   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8361   getDerived().getSema().StartOpenMPDSABlock(
 8364   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8372   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_simd, DirName, nullptr,
 8375   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8383   getDerived().getSema().StartOpenMPDSABlock(OMPD_teams_distribute, DirName,
 8386   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8394   getDerived().getSema().StartOpenMPDSABlock(
 8397   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8405   getDerived().getSema().StartOpenMPDSABlock(
 8409   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8417   getDerived().getSema().StartOpenMPDSABlock(
 8420   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8428   getDerived().getSema().StartOpenMPDSABlock(OMPD_target_teams, DirName,
 8431   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8439   getDerived().getSema().StartOpenMPDSABlock(
 8442   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8451   getDerived().getSema().StartOpenMPDSABlock(
 8455   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8464   getDerived().getSema().StartOpenMPDSABlock(
 8468   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 8477   getDerived().getSema().StartOpenMPDSABlock(
 8480   getDerived().getSema().EndOpenMPDSABlock(Res.get());
 9053           TT.getSema().Context, /*NamingClass=*/nullptr,
 9054           MapperIdScopeSpec.getWithLocInContext(TT.getSema().Context),
 9776   Sema::FPContractStateRAII FPContractState(getSema());
 9777   getSema().FPFeatures = E->getFPFeatures();
 9973       getSema(), EnterExpressionEvaluationContext::InitList);
10302   Sema::FPContractStateRAII FPContractState(getSema());
10303   getSema().FPFeatures = E->getFPFeatures();
10321                          getSema().CurContext != E->getParentContext();
10328                                            getSema().CurContext);
10539   QualType T = getSema().getCurrentThisType();
10544     getSema().MarkThisReferenced(E);
10890     getSema().Diag(Old->getNameLoc(), diag::err_using_pack_expansion_empty)
11019       Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
11263         getSema(), EnterExpressionEvaluationContext::InitList,
11353         getSema(), EnterExpressionEvaluationContext::InitList,
11412           getSema().buildLambdaInitCaptureInitialization(
11443           Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
11457   LambdaScopeInfo *LSI = getSema().PushLambdaScope();
11458   Sema::FunctionScopeRAII FuncScopeCleanup(getSema());
11487     NewCallOpTSI = NewCallOpTLBuilder.getTypeSourceInfo(getSema().Context,
11494     = getSema().createLambdaClosureType(E->getIntroducerRange(),
11507   CXXMethodDecl *NewCallOperator = getSema().startLambdaDefinition(
11520           getSema(),
11532   getSema().handleLambdaNumbering(Class, NewCallOperator, Mangling);
11535   Sema::ContextRAII SavedContext(getSema(), NewCallOperator,
11539   getSema().buildLambdaScope(LSI, NewCallOperator,
11560       getSema().CheckCXXThisCapture(C->getLocation(), C->isExplicit(),
11584         VarDecl *NewVD = getSema().createLambdaInitCaptureVarDecl(
11592         getSema().addInitCapture(LSI, NewVD);
11631           Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
11641           getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind);
11662     getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind,
11665   getSema().finishLambdaExplicitCaptures(LSI);
11669   getSema().PushExpressionEvaluationContext(
11681     getSema().ActOnLambdaError(E->getBeginLoc(), /*CurScope=*/nullptr,
11690   getSema().ActOnFinishFunctionBody(NewCallOperator, Body.get(),
11694   return getSema().BuildLambdaExpr(E->getBeginLoc(), Body.get()->getEndLoc(),
11718       getSema().CheckCXXThisCapture(C->getLocation(), C->isExplicit(),
11738     getSema().tryCaptureVariable(CapturedVar, C->getLocation());
11758         getSema(), EnterExpressionEvaluationContext::InitList,
11886     Base = getSema().PerformMemberExprBaseConversion(Base.get(),
11990       getSema(), Sema::ExpressionEvaluationContext::Unevaluated);
12014         ArgStorage = getSema().Context.getPackExpansionType(
12015             getSema().Context.getTypeDeclType(TTPD), None);
12020         ExprResult DRE = getSema().BuildDeclRefExpr(
12021             VD, VD->getType().getNonLValueExprType(getSema().Context),
12026         ArgStorage = new (getSema().Context) PackExpansionExpr(
12027             getSema().Context.DependentTy, DRE.get(), E->getPackLoc(), None);
12059         getSema().getTemplateArgumentPackExpansionPattern(ArgLoc, Ellipsis,
12064     Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
12071         getSema().getFullyPackExpandedSize(OutPattern.getArgument());
12157   getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
12176     Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
12222         getSema(), LeftFold ? I : *NumExpansions - I - 1);
12336       getSema().collectUnexpandedParameterPacks(OrigElement.Key, Unexpanded);
12337       getSema().collectUnexpandedParameterPacks(OrigElement.Value, Unexpanded);
12357         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
12386         Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
12746     getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/nullptr);
12772     getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/nullptr);
13052       getSema().Diag(Loc, diag::err_using_pack_expansion_empty)
13071         assert(getSema().Context.hasSameType(ThisT, T) &&
13158   getSema().ActOnDependentTemplateName(/*Scope=*/nullptr,
13179   getSema().ActOnDependentTemplateName(/*Scope=*/nullptr,
13219       return getSema().CreateBuiltinArraySubscriptExpr(
13226         (Op == OO_Amp && getSema().isQualifiedMemberAccess(First))) {
13233       return getSema().CreateBuiltinUnaryOp(OpLoc, Opc, First);
13344       getSema().Diag(ScopeType->getTypeLoc().getBeginLoc(),
13346           << ScopeType->getType() << getSema().getLangOpts().CPlusPlus;
13354   return getSema().BuildMemberReferenceExpr(Base, BaseType,
13381   getSema().ActOnCapturedRegionStart(Loc, /*CurScope*/nullptr,
13385     Sema::CompoundScopeRAII CompoundScope(getSema());
13390     getSema().ActOnCapturedRegionError();
13394   return getSema().ActOnCapturedRegionEnd(Body.get());