@@ -677,9 +677,9 @@ void Parser::ParseGNUAttributeArgs(
677677 if (normalizeAttrName (AttrName->getName ()) == " enable_if" &&
678678 D && D->isFunctionDeclarator ()) {
679679 const DeclaratorChunk::FunctionTypeInfo& FTI = D->getFunctionTypeInfo ();
680- PrototypeScope.emplace (this , Scope::FunctionPrototypeScope |
681- Scope::FunctionDeclarationScope |
682- Scope::DeclScope);
680+ PrototypeScope.emplace (Actions , Scope::FunctionPrototypeScope |
681+ Scope::FunctionDeclarationScope |
682+ Scope::DeclScope);
683683 for (unsigned i = 0 ; i != FTI.NumParams ; ++i) {
684684 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params [i].Param );
685685 Actions.ActOnReenterCXXMethodParameter (getCurScope (), Param);
@@ -2454,7 +2454,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(
24542454 if (ThisDecl && P.getLangOpts ().CPlusPlus ) {
24552455 Scope *S = nullptr ;
24562456 if (D.getCXXScopeSpec ().isSet ()) {
2457- P.EnterScope (0 );
2457+ P.Actions . EnterScope (0 );
24582458 S = P.getCurScope ();
24592459 }
24602460 if (ThisDecl && !ThisDecl->isInvalidDecl ()) {
@@ -2472,7 +2472,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(
24722472 if (Entered)
24732473 P.Actions .ActOnCXXExitDeclInitializer (S, ThisDecl);
24742474 if (S)
2475- P.ExitScope ();
2475+ P.Actions . ExitScope ();
24762476 }
24772477 ThisDecl = nullptr ;
24782478 }
@@ -4826,7 +4826,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
48264826 if (T.consumeOpen ())
48274827 return ;
48284828
4829- ParseScope StructScope (this , Scope::ClassScope|Scope::DeclScope);
4829+ ParseScope StructScope (Actions , Scope::ClassScope|Scope::DeclScope);
48304830 Actions.ActOnTagStartDefinition (getCurScope (), TagDecl);
48314831
48324832 // `LateAttrParseExperimentalExtOnly=true` requests that only attributes
@@ -5338,7 +5338,7 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS,
53385338void Parser::ParseEnumBody (SourceLocation StartLoc, Decl *EnumDecl,
53395339 SkipBodyInfo *SkipBody) {
53405340 // Enter the scope of the enum body and start the definition.
5341- ParseScope EnumScope (this , Scope::DeclScope | Scope::EnumScope);
5341+ ParseScope EnumScope (Actions , Scope::DeclScope | Scope::EnumScope);
53425342 Actions.ActOnTagStartDefinition (getCurScope (), EnumDecl);
53435343
53445344 BalancedDelimiterTracker T (*this , tok::l_brace);
@@ -5681,8 +5681,8 @@ Parser::DeclGroupPtrTy Parser::ParseTopLevelStmtDecl() {
56815681 // Parse a top-level-stmt.
56825682 Parser::StmtVector Stmts;
56835683 ParsedStmtContext SubStmtCtx = ParsedStmtContext ();
5684- ParseScope FnScope (this , Scope::FnScope | Scope::DeclScope |
5685- Scope::CompoundStmtScope);
5684+ ParseScope FnScope (Actions , Scope::FnScope | Scope::DeclScope |
5685+ Scope::CompoundStmtScope);
56865686 TopLevelStmtDecl *TLSD = Actions.ActOnStartTopLevelStmtDecl (getCurScope ());
56875687 StmtResult R = ParseStatementOrDeclaration (Stmts, SubStmtCtx);
56885688 Actions.ActOnFinishTopLevelStmtDecl (TLSD, R.get ());
@@ -6804,9 +6804,9 @@ void Parser::ParseDirectDeclarator(Declarator &D) {
68046804 // Enter function-declaration scope, limiting any declarators to the
68056805 // function prototype scope, including parameter declarators.
68066806 ParseScope PrototypeScope (
6807- this , Scope::FunctionPrototypeScope | Scope::DeclScope |
6808- (IsFunctionDeclaration ? Scope::FunctionDeclarationScope
6809- : Scope::NoScope));
6807+ Actions , Scope::FunctionPrototypeScope | Scope::DeclScope |
6808+ (IsFunctionDeclaration ? Scope::FunctionDeclarationScope
6809+ : Scope::NoScope));
68106810
68116811 // The paren may be part of a C++ direct initializer, eg. "int x(1);".
68126812 // In such a case, check if we actually have a function declarator; if it
@@ -7085,7 +7085,7 @@ void Parser::ParseParenDeclarator(Declarator &D) {
70857085
70867086 // Enter function-declaration scope, limiting any declarators to the
70877087 // function prototype scope, including parameter declarators.
7088- ParseScope PrototypeScope (this ,
7088+ ParseScope PrototypeScope (Actions ,
70897089 Scope::FunctionPrototypeScope | Scope::DeclScope |
70907090 (D.isFunctionDeclaratorAFunctionDeclaration ()
70917091 ? Scope::FunctionDeclarationScope
@@ -8126,7 +8126,7 @@ TypeResult Parser::ParseTypeFromString(StringRef TypeStr, StringRef Context,
81268126 ConsumeAnyToken ();
81278127
81288128 // Enter a new scope.
8129- ParseScope LocalScope (this , 0 );
8129+ ParseScope LocalScope (Actions , 0 );
81308130
81318131 // Parse the type.
81328132 TypeResult Result = ParseTypeName (nullptr );
0 commit comments