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

References

tools/clang/include/clang/Parse/Parser.h
 2655       if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS))
 2662         P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS);
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
   39     FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D,
   42     FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D,
   46       Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs);
  136   LM->TemplateScope = getCurScope()->isTemplateParamScope();
  268     Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
  278     Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
  286     Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
  295     Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method);
  299   Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
  309     Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param);
  461   Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
  472     Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
  489     Actions.ActOnReenterTemplateScope(getCurScope(), LM.D);
  517   Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D);
  577     Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
  587     Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
  605     Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
tools/clang/lib/Parse/ParseDecl.cpp
   68   return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
  476       Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param);
 1434     Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
 1444     Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
 1453     Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
 1549     Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs);
 1834     Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
 2111     Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
 2121     return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl);
 2191   return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
 2258           S = P.getCurScope();
 2268           S = P.getCurScope();
 2281     ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
 2286     ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(),
 2298           getCurScope(), TemplateInfo.ExternLoc, TemplateInfo.TemplateLoc, D);
 2313         ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
 2329             Actions.ActOnTemplateDeclarator(getCurScope(), FakedParamLists, D);
 2358         Actions.CodeCompleteInitializer(getCurScope(), ThisDecl);
 2406           getCurScope(), ThisVarDecl->getType()->getCanonicalTypeInternal(),
 2426             getCurScope(), ThisVarDecl->getType()->getCanonicalTypeInternal(),
 2634     switch (Actions.isTagName(*Tok.getIdentifierInfo(), getCurScope())) {
 2658       if (Actions.LookupParsedName(R, getCurScope(), SS)) {
 2726       if (getCurScope()->isFunctionPrototypeScope())
 2745   Actions.DiagnoseUnknownTypeName(II, Loc, getCurScope(), SS, T,
 2932           getCurScope(), SS, Name, AfterScope.getLocation(), Next,
 3103           = (getCurScope()->getFlags() & (Scope::ControlScope |
 3112         Actions.CodeCompleteDeclSpec(getCurScope(), DS,
 3118       if (getCurScope()->getFnParent() || getCurScope()->getBlockParent())
 3118       if (getCurScope()->getFnParent() || getCurScope()->getBlockParent())
 3128       Actions.CodeCompleteOrdinaryName(getCurScope(), CCC);
 3170             Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS) &&
 3212           Actions.isCurrentClassName(*Next.getIdentifierInfo(), getCurScope(),
 3219                               getCurScope(), &SS, false, false, nullptr,
 3366           Actions.isCurrentClassName(*Tok.getIdentifierInfo(), getCurScope()) &&
 3371           *Tok.getIdentifierInfo(), Tok.getLocation(), getCurScope(), nullptr,
 3394           Actions.isDeductionGuideName(getCurScope(), *Tok.getIdentifierInfo(),
 3441           Actions.isCurrentClassName(*TemplateId->Name, getCurScope()) &&
 4065     Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
 4136   Actions.ActOnTagStartDefinition(getCurScope(), TagDecl);
 4188             Actions.ActOnField(getCurScope(), TagDecl,
 4213       Actions.ActOnDefs(getCurScope(), TagDecl, Tok.getLocation(),
 4241   Actions.ActOnFields(getCurScope(), RecordLoc, TagDecl, FieldDecls,
 4244   Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl, T.getRange());
 4283     Actions.CodeCompleteTag(getCurScope(), DeclSpec::TST_enum);
 4385   bool CanBeBitfield = getCurScope()->getFlags() & Scope::ClassScope;
 4541     SkipBody = Actions.shouldSkipAnonEnumBody(getCurScope(),
 4550       getCurScope(), DeclSpec::TST_enum, TUK, StartLoc, SS, Name, NameLoc,
 4583         getCurScope(), DeclSpec::TST_enum, TUK, SS, Name, StartLoc, NameLoc);
 4640   Actions.ActOnTagStartDefinition(getCurScope(), EnumDecl);
 4695         getCurScope(), EnumDecl, LastEnumConstDecl, IdentLoc, Ident, attrs,
 4749                         getCurScope(), attrs);
 4760   Actions.ActOnTagFinishDefinition(getCurScope(), EnumDecl, T.getRange());
 4764   bool CanBeBitfield = getCurScope()->getFlags() & Scope::ClassScope;
 5203   if (SS.isSet() && Actions.ShouldEnterDeclaratorScope(getCurScope(), SS))
 5763       if (Actions.ShouldEnterDeclaratorScope(getCurScope(),
 5846             Actions.ShouldEnterDeclaratorScope(getCurScope(),
 5930           Actions.ShouldEnterDeclaratorScope(getCurScope(),
 6234   assert(getCurScope()->isFunctionPrototypeScope() &&
 6411   if (getCurScope()->getFlags() & Scope::FunctionDeclarationScope &&
 6413     for (Decl *D : getCurScope()->decls()) {
 6514     if (Actions.getTypeName(*ParmII, Tok.getLocation(), getCurScope()))
 6637       Decl *Param = Actions.ActOnParamDeclarator(getCurScope(), ParmDeclarator);
 6759     ExprResult ExprRes(Actions.ActOnNumericConstant(Tok, getCurScope()));
 6773     Actions.CodeCompleteBracketDeclarator(getCurScope());
tools/clang/lib/Parse/ParseDeclCXX.cpp
   66     Actions.CodeCompleteNamespaceDecl(getCurScope());
  146   if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() ||
  146   if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() ||
  147       getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() ||
  147       getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() ||
  148       getCurScope()->getFnParent()) {
  216       getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident,
  262       getCurScope(), InnerNSs[index].InlineLoc, InnerNSs[index].NamespaceLoc,
  286     Actions.CodeCompleteNamespaceAliasDecl(getCurScope());
  322   return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc,
  342                 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(),
  357                              getCurScope(), LinkageSpec, SourceLocation())
  406                            getCurScope(), LinkageSpec, T.getCloseLocation())
  422       getCurScope(), ExportLoc,
  431     return Actions.ActOnFinishExportDecl(getCurScope(), ExportDecl,
  454   return Actions.ActOnFinishExportDecl(getCurScope(), ExportDecl,
  472     Actions.CodeCompleteUsing(getCurScope());
  526     Actions.CodeCompleteUsingDirective(getCurScope());
  576   return Actions.ActOnUsingDirective(getCurScope(), UsingLoc, NamespcLoc, SS,
  747       Decl *UD = Actions.ActOnUsingDeclaration(getCurScope(), AS, UsingLoc,
  850   return Actions.ActOnAliasDeclaration(getCurScope(), AS, TemplateParamsArg,
 1136     return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 1173     if (!Actions.DiagnoseUnknownTemplateName(*Id, IdLoc, getCurScope(),
 1214       *Id, IdLoc, getCurScope(), &SS, /*isClassName=*/true, false, nullptr,
 1238   return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 1411     Actions.CodeCompleteTag(getCurScope(), TagType);
 1624       Actions.ActOnUndeclaredTypeTemplateName(getCurScope(), TemplateId->Template,
 1815           getCurScope(), TemplateInfo.ExternLoc, TemplateInfo.TemplateLoc,
 1878           getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(),
 1895         getCurScope(), TemplateInfo.ExternLoc, TemplateInfo.TemplateLoc,
 1902         getCurScope(), DS.getFriendSpecLoc(), TagType, StartLoc, SS, Name,
 1933         getCurScope(), TagType, TUK, StartLoc, SS, Name, NameLoc, attrs, AS,
 1945       TypeResult = Actions.ActOnDependentTag(getCurScope(), TagType, TUK,
 2185     LateMethod->TemplateScope = getCurScope()->isTemplateParamScope();
 2526           getCurScope(), AS, /*UsingLoc*/ SourceLocation(),
 2631         getCurScope(), AS, DS, TemplateParams, false, AnonRecord);
 2806       ThisDecl = Actions.ActOnFriendFunctionDecl(getCurScope(), DeclaratorInfo,
 2809       ThisDecl = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS,
 2822         Actions.ProcessDeclAttributeList(getCurScope(), ThisDecl, AccessAttrs);
 2933   return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
 3025         Actions.ActOnTagStartSkippedDefinition(getCurScope(), TagDecl);
 3182     for (const Scope *S = getCurScope(); S; S = S->getParent()) {
 3213     Actions.ActOnTagStartDefinition(getCurScope(), TagDecl);
 3256         Actions.ActOnTagDefinitionError(getCurScope(), TagDecl);
 3262     ParseScope InheritanceScope(this, getCurScope()->getFlags() |
 3300           Actions.ActOnTagDefinitionError(getCurScope(), TagDecl);
 3311     Actions.ActOnStartCXXMemberDeclarations(getCurScope(), TagDecl, FinalLoc,
 3343     Actions.ActOnFinishCXXMemberSpecification(getCurScope(), RecordLoc, TagDecl,
 3374     Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl, T.getRange());
 3541     return Actions.ActOnMemInitializer(ConstructorDecl, getCurScope(), SS, II,
 3553           getCurScope(), ConstructorDecl, SS, TemplateTypeTy, ArgExprs, II,
 3574     return Actions.ActOnMemInitializer(ConstructorDecl, getCurScope(), SS, II,
 3848   assert(getCurScope()->isClassScope() && "Nested class outside of class scope?");
 3850   Victim->TemplateScope = getCurScope()->getParent()->isTemplateParamScope();
tools/clang/lib/Parse/ParseExpr.cpp
  152     LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__,
  161     Actions.CodeCompleteExpression(getCurScope(),
  499         LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(),
  823     Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope());
  975         (Actions.getTypeName(II, ILoc, getCurScope()) ||
  977          (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) {
  982             getCurScope(), II, ILoc, ExprStatementTokLoc == ILoc);
 1005         getCurScope()->isInObjcMethodScope() &&
 1025         if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope()))
 1037             TypeResult Ty = Actions.ActOnTypeName(getCurScope(),
 1073         getCurScope(), ScopeSpec, TemplateKWLoc, Name, Tok.is(tok::l_paren),
 1091     Res = Actions.ActOnCharacterConstant(Tok, /*UDLScope*/getCurScope());
 1154       Res = Actions.ActOnUnaryOp(getCurScope(), SavedTok.getLocation(),
 1164       Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
 1179       Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
 1187       Res = Actions.ActOnCoawaitExpr(getCurScope(), CoawaitLoc, Res.get());
 1197       Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
 1218     if (getCurScope()->getFnParent() == nullptr)
 1263       TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 1454     Actions.CodeCompleteExpression(getCurScope(),
 1540           getCurScope(), LHS, PreferredType.get(Tok.getLocation()));
 1613           LHS = Actions.ActOnArraySubscriptExpr(getCurScope(), LHS.get(), Loc,
 1666           ExprResult ECResult = Actions.ActOnCUDAExecConfigExpr(getCurScope(),
 1684             getCurScope(), LHS.get(), ArgExprs, PT.getOpenLocation());
 1731         LHS = Actions.ActOnCallExpr(getCurScope(), LHS.get(), Loc,
 1765         LHS = Actions.ActOnStartCXXMemberReference(getCurScope(), Base,
 1787               getCurScope(), OrigLHS, OpLoc, CorrectedOpKind, ObjectType,
 1798             getCurScope(), Base, CorrectedBase, OpLoc, OpKind == tok::arrow,
 1846         LHS = Actions.ActOnMemberAccessExpr(getCurScope(), LHS.get(), OpLoc,
 1857         LHS = Actions.ActOnPostfixUnaryOp(getCurScope(), Tok.getLocation(),
 2029     return Actions.ActOnSizeofParameterPackExpr(getCurScope(),
 2211           Res = Actions.ActOnBuiltinOffsetOf(getCurScope(), StartLoc, TypeLoc,
 2393         getCurScope(), PreferredType.get(Tok.getLocation()),
 2422     if (!getCurScope()->getFnParent() && !getCurScope()->getBlockParent()) {
 2422     if (!getCurScope()->getFnParent() && !getCurScope()->getBlockParent()) {
 2482     return Actions.ActOnObjCBridgedCast(getCurScope(), OpenLoc, Kind,
 2517         Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 2532           Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 2544             Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 2564               Result = Actions.ActOnCastExpr(getCurScope(), OpenLoc,
 2591             Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 2600             getCurScope()->isInObjcMethodScope() &&
 2614           Result = Actions.ActOnCastExpr(getCurScope(), OpenLoc,
 2725                                     AllowUserDefinedLiteral ? getCurScope()
 2979     Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Type);
 2995   Actions.ActOnBlockArguments(CaretLoc, DeclaratorInfo, getCurScope());
 3023   Actions.ActOnBlockStart(CaretLoc, getCurScope());
 3047       Actions.ActOnBlockError(CaretLoc, getCurScope());
 3054     Actions.ActOnBlockArguments(CaretLoc, ParamInfo, getCurScope());
 3084     Actions.ActOnBlockArguments(CaretLoc, ParamInfo, getCurScope());
 3092     Actions.ActOnBlockError(CaretLoc, getCurScope());
 3099     Result = Actions.ActOnBlockStmtExpr(CaretLoc, Stmt.get(), getCurScope());
 3101     Actions.ActOnBlockError(CaretLoc, getCurScope());
tools/clang/lib/Parse/ParseExprCXX.cpp
   93   if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false,
  239         Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext,
  320               getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType,
  359       if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(),
  396       if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo,
  422           !Actions.isNonTypeNestedNameSpecifier(getCurScope(), SS, IdInfo)) {
  457               getCurScope(), IdInfo, EnteringContext, SS, false,
  483       if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS,
  526                 getCurScope(), SS, Tok.getLocation(), TemplateName, ObjectType,
  565     E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok);
  609         getCurScope(), SS, TemplateKWLoc, Name, Tok.is(tok::l_paren),
  876           Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
  893         Actions.CodeCompleteObjCMessageReceiver(getCurScope());
  895         Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
  933           Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
 1269       Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
 1459   Actions.ActOnStartOfLambdaDefinition(Intro, D, getCurScope());
 1464     Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
 1473     return Actions.ActOnLambdaExpr(LambdaBeginLoc, Stmt.get(), getCurScope());
 1475   Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
 1719     return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind,
 1743   return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind,
 1776     return Actions.ActOnCXXThrow(getCurScope(), ThrowLoc, nullptr);
 1781     return Actions.ActOnCXXThrow(getCurScope(), ThrowLoc, Expr.get());
 1796     Expr = Actions.ActOnCoyieldExpr(getCurScope(), Loc, Expr.get());
 1827   ParsedType TypeRep = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo).get();
 1852           getCurScope(), TypeRep.get()->getCanonicalTypeInternal(),
 1918     Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Condition);
 1965     return Actions.ActOnCondition(getCurScope(), Loc, Expr.get(), CK);
 2017   DeclResult Dcl = Actions.ActOnCXXConditionDeclaration(getCurScope(),
 2264           getCurScope(), SS, TemplateKWLoc, Id, ObjectType, EnteringContext,
 2270       TNK = Actions.isTemplateName(getCurScope(), SS,
 2301             getCurScope(), SS, TemplateKWLoc, Id, ObjectType, EnteringContext,
 2313     TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
 2326           getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType,
 2331       TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
 2387       getCurScope(), SS, TemplateKWLoc, Template, Name, NameLoc, LAngleLoc,
 2515       Actions.CodeCompleteOperatorName(getCurScope());
 2629   TypeResult Ty = Actions.ActOnTypeName(getCurScope(), D);
 2712         Actions.isCurrentClassName(*Id, getCurScope(), &SS)) {
 2714       ParsedType Ty = Actions.getConstructorName(*Id, IdLoc, getCurScope(), SS,
 2721                Actions.isDeductionGuideName(getCurScope(), *Id, IdLoc,
 2738                  getCurScope(), SS, *TemplateKWLoc, Result, ObjectType,
 2753         Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS)) {
 2765             *TemplateId->Name, TemplateId->TemplateNameLoc, getCurScope(), SS,
 2817                  getCurScope(), SS, *TemplateKWLoc, Result, ObjectType,
 2880       if (Actions.ShouldEnterDeclaratorScope(getCurScope(), SS))
 2897                                               ClassNameLoc, getCurScope(),
 3026             Actions.ActOnTypeName(getCurScope(), DeclaratorInfo).get();
 3028             getCurScope(), TypeRep.get()->getCanonicalTypeInternal(),
 3508       TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 3522       Result = Actions.ActOnCastExpr(getCurScope(), Tracker.getOpenLocation(),
tools/clang/lib/Parse/ParseInit.cpp
  243           getCurScope()->isInObjcMethodScope()) {
  280           getCurScope(), II, IILoc, II == Ident_super,
tools/clang/lib/Parse/ParseObjc.cpp
   52     Actions.CodeCompleteObjCAtDirective(getCurScope());
  175     Actions.ActOnAtEnd(getCurScope(), AtLoc);
  221     Actions.CodeCompleteObjCInterfaceDecl(getCurScope());
  241   ObjCTypeParamListScope typeParamScope(Actions, getCurScope());
  255       Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc);
  310       Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc);
  356       getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId,
  436           getCurScope(), ObjCTypeParamVariance::Invariant, SourceLocation(),
  514         getCurScope(), variance, varianceLoc, typeParams.size(), paramName,
  556                               getCurScope(),
  575   ObjCTypeParamListScope Scope(Actions, getCurScope());
  638       Actions.CodeCompleteOrdinaryName(getCurScope(),
  671       Actions.CodeCompleteObjCAtDirective(getCurScope());
  762             getCurScope(), AtLoc, LParenLoc, FD, OCDS, GetterSel, SetterSel,
  780     Actions.CodeCompleteObjCAtDirective(getCurScope());
  795   Actions.ActOnAtEnd(getCurScope(), AtEnd, allMethods, allTUVariables);
  848       Actions.CodeCompleteObjCPropertyFlags(getCurScope(), DS);
  895           Actions.CodeCompleteObjCPropertySetter(getCurScope());
  897           Actions.CodeCompleteObjCPropertyGetter(getCurScope());
 1145       Actions.CodeCompleteObjCPassingType(getCurScope(), DS,
 1274       TypeResult type = Actions.ActOnTypeName(getCurScope(), declarator);
 1334     Actions.CodeCompleteObjCMethodDecl(getCurScope(), mType == tok::minus,
 1354     Actions.CodeCompleteObjCMethodDecl(getCurScope(), mType == tok::minus,
 1382         getCurScope(), mLoc, Tok.getLocation(), mType, DSRet, ReturnType,
 1420       Actions.CodeCompleteObjCMethodDeclSelector(getCurScope(),
 1444       Actions.CodeCompleteObjCMethodDeclSelector(getCurScope(),
 1487     Decl *Param = Actions.ActOnParamDeclarator(getCurScope(), ParmDecl);
 1506       getCurScope(), mLoc, Tok.getLocation(), mType, DSRet, ReturnType, KeyLocs,
 1631         Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Type);
 1652     Actions.actOnObjCTypeArgsOrProtocolQualifiers(getCurScope(),
 1682       = Actions.getTypeName(*identifiers[i], identifierLocs[i], getCurScope());
 1692       TypeResult fullTypeArg = Actions.ActOnTypeName(getCurScope(), D);
 1750                                       getCurScope(), nullptr, T);
 1850            getCurScope(),
 1874   Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl, AllIvarDecls,
 1924         Actions.CodeCompleteObjCAtVisibility(getCurScope());
 1954       Actions.CodeCompleteOrdinaryName(getCurScope(),
 1973           getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D,
 2021     Actions.CodeCompleteObjCProtocolDecl(getCurScope());
 2105     Actions.CodeCompleteObjCImplementationDecl(getCurScope());
 2125     ObjCTypeParamListScope typeParamScope(Actions, getCurScope());
 2143       Actions.CodeCompleteObjCImplementationCategory(getCurScope(), nameId, nameLoc);
 2253   P.Actions.DefaultSynthesizeProperties(P.getCurScope(), Dcl, AtEnd.getBegin());
 2258   P.Actions.ActOnAtEnd(P.getCurScope(), AtEnd);
 2313       Actions.CodeCompleteObjCPropertyDefinition(getCurScope());
 2331         Actions.CodeCompleteObjCPropertySynthesizeIvar(getCurScope(), propertyId);
 2342         getCurScope(), atLoc, propertyLoc, true,
 2391       Actions.CodeCompleteObjCPropertyDefinition(getCurScope());
 2404         getCurScope(), atLoc, propertyLoc, false,
 2432   return Actions.ActOnObjCAtThrowStmt(atLoc, Res.get(), getCurScope());
 2540           FirstPart = Actions.ActOnObjCExceptionDecl(getCurScope(), ParmDecl);
 2581         Actions.ActOnCapturedRegionStart(Tok.getLocation(), getCurScope(),
 2728     Actions.CodeCompleteObjCAtStatement(getCurScope());
 2769     Actions.CodeCompleteObjCAtExpression(getCurScope());
 2796     Lit = Actions.ActOnUnaryOp(getCurScope(), OpLoc, Kind, Lit.get());
 2952   TypeResult Type = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
 2984                                getCurScope());
 3015     Actions.CodeCompleteObjCMessageReceiver(getCurScope());
 3030         NextToken().isNot(tok::period) && getCurScope()->isInObjcMethodScope())
 3055     switch (Actions.getObjCMessageKind(getCurScope(), Name, NameLoc,
 3153       Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc, None,
 3156       Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType, None,
 3159       Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
 3191           Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc,
 3195           Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType,
 3199           Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
 3229           Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc,
 3233           Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType,
 3237           Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
 3302     return Actions.ActOnSuperMessage(getCurScope(), SuperLoc, Sel,
 3305     return Actions.ActOnClassMessage(getCurScope(), ReceiverType, Sel,
 3307   return Actions.ActOnInstanceMessage(getCurScope(), ReceiverExpr, Sel,
 3580     Actions.CodeCompleteObjCSelector(getCurScope(), KeyIdents);
 3606         Actions.CodeCompleteObjCSelector(getCurScope(), KeyIdents);
 3668     Actions.ActOnStartOfObjCMethodDef(getCurScope(), MCDecl);
 3670     Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl);
tools/clang/lib/Parse/ParseOpenMP.cpp
   60         P->getCurScope(), SS, NameInfo, Kind);
  316       getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS);
  327     Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D);
  364             Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(),
  403   return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD,
  414       Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm);
  440           getCurScope(), OmpPrivParm->getType()->getCanonicalTypeInternal(),
  549       getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType,
  556   Actions.StartOpenMPDSABlock(OMPD_declare_mapper, DirName, getCurScope(), Loc);
  560       DMD, getCurScope(), MapperType, Range.getBegin(), VName);
  591       Actions.ActOnOpenMPDeclareMapperDirectiveEnd(DMD, getCurScope(), Clauses);
  616   return Actions.ActOnOpenMPDeclareMapperVarDecl(getCurScope(), DeclaratorInfo);
 1172           getCurScope(), SS, NameInfo, SameDirectiveDecls);
 1841       Actions.ActOnOpenMPRegionStart(DKind, getCurScope());
 1849       Actions.ActOnOpenMPRegionStart(DKind, getCurScope());
tools/clang/lib/Parse/ParsePragma.cpp
  500   Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc);
  563   Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II);
  663   Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default,
tools/clang/lib/Parse/ParseStmt.cpp
  173     Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement);
  444   if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() &&
  527     ParseScopeFlags FilterScope(this, getCurScope()->getFlags() |
  587   return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope());
  705       Actions.CodeCompleteCase(getCurScope());
  857                                   SubStmt.get(), getCurScope());
 1055         Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
 1165       Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK);
 1317     Actions.CodeCompleteAfterIf(getCurScope());
 1413   getCurScope()->AddFlags(Scope::BreakScope);
 1419     getCurScope()->decrementMSManglingNumber();
 1664     Actions.CodeCompleteOrdinaryName(getCurScope(),
 1703         getCurScope(), Loc, Name, attrs, attrs.Range.getEnd());
 1735         Actions.CodeCompleteObjCForCollection(getCurScope(), DG);
 1771         Actions.CodeCompleteObjCForCollection(getCurScope(), nullptr);
 1796   getCurScope()->AddFlags(Scope::BreakScope | Scope::ContinueScope);
 1834               Actions.ActOnCondition(getCurScope(), ForLoc, SecondExpr.get(),
 1881         getCurScope(), ForLoc, CoawaitLoc, FirstPart.get(),
 1919     getCurScope()->decrementMSManglingNumber();
 1988   return Actions.ActOnContinueStmt(ContinueLoc, getCurScope());
 1999   return Actions.ActOnBreakStmt(BreakLoc, getCurScope());
 2020       Actions.CodeCompleteExpression(getCurScope(),
 2042     return Actions.ActOnCoreturnStmt(getCurScope(), ReturnLoc, R.get());
 2043   return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope());
 2307     ExceptionDecl = Actions.ActOnExceptionDeclarator(getCurScope(), ExDecl);
tools/clang/lib/Parse/ParseStmtAsm.cpp
  658           Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get();
tools/clang/lib/Parse/ParseTemplate.cpp
  150   unsigned NewFlags = getCurScope()->getFlags() & ~Scope::TemplateParamScope;
  221         getCurScope(), AS, DS,
  407   return Actions.ActOnConceptDefinition(getCurScope(),
  661   return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, EllipsisLoc,
  770   return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc,
  825   return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl,
 1138         getCurScope(), SS, TemplateKWLoc, Template, TemplateName.Identifier,
 1217     = Actions.ActOnTemplateIdType(getCurScope(),
 1287               getCurScope(), SS, TemplateKWLoc, Name,
 1304           getCurScope(), SS,
 1486         getCurScope(), cast<Decl>(CDC.getDC()));
 1515   Actions.ActOnStartOfFunctionDef(getCurScope(), FunD);
 1576     Actions.diagnoseExprIntendedAsTemplateName(getCurScope(), LHS,
 1606         getCurScope(), PotentialTemplateName, Less, Greater);
 1656         getCurScope(), LAngle.TemplateName, LAngle.LessLoc,
tools/clang/lib/Parse/Parser.cpp
  369     N->Init(getCurScope(), ScopeFlags);
  372     Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags);
  378   assert(getCurScope() && "Scope imbalance!");
  382   Actions.ActOnPopScope(Tok.getLocation(), getCurScope());
  384   Scope *OldScope = getCurScope();
  397   : CurScope(ManageFlags ? Self->getCurScope() : nullptr) {
  418   delete getCurScope();
  447   assert(getCurScope() == nullptr && "A scope is already active?");
  449   Actions.ActOnTranslationUnitScope(getCurScope());
  780         Actions.ActOnEmptyDeclaration(getCurScope(), attrs, Tok.getLocation());
  835       Actions.CodeCompleteObjCMethodDecl(getCurScope(),
  840         getCurScope(),
 1040     Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
 1189     Scope *ParentScope = getCurScope()->getParent();
 1220     Scope *ParentScope = getCurScope()->getParent();
 1243   Decl *Res = Actions.ActOnStartOfFunctionDef(getCurScope(), D,
 1404         Actions.ActOnParamDeclarator(getCurScope(), ParmDeclarator);
 1460   Actions.ActOnFinishKNRParamDeclarations(getCurScope(), D, Tok.getLocation());
 1604       getCurScope(), SS, Name, NameLoc, Next, SS.isEmpty() ? CCC : nullptr);
 1616         Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, FakeNext,
 1826       Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS,
 1842       Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS,
 1884             *Tok.getIdentifierInfo(), Tok.getLocation(), getCurScope(), &SS,
 1940               getCurScope(), SS,
 2043   for (Scope *S = getCurScope(); S; S = S->getParent()) {
 2045       Actions.CodeCompleteOrdinaryName(getCurScope(),
 2052       Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Class);
 2058   Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Namespace);
 2070   Actions.CodeCompleteInPreprocessorConditionalExclusion(getCurScope());
 2084   Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo,
 2134   switch (Actions.CheckMicrosoftIfExistsSymbol(getCurScope(), Result.KeywordLoc,
 2186     if (Result && !getCurScope()->getParent())