@@ -266,7 +266,7 @@ void Parser::ParseCXXNonStaticMemberInitializer(Decl *VarD) {
266266 ConsumeAndStoreUntil (tok::r_brace, Toks, /* StopAtSemi=*/ true );
267267 } else {
268268 // Consume everything up to (but excluding) the comma or semicolon.
269- ConsumeAndStoreInitializer (Toks, CIK_DefaultInitializer );
269+ ConsumeAndStoreInitializer (Toks, CachedInitKind::DefaultInitializer );
270270 }
271271
272272 // Store an artificial EOF token to ensure that we don't run off the end of
@@ -1238,15 +1238,15 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks,
12381238 TPResult Result = TPResult::Error;
12391239 ConsumeToken ();
12401240 switch (CIK) {
1241- case CIK_DefaultInitializer :
1241+ case CachedInitKind::DefaultInitializer :
12421242 Result = TryParseInitDeclaratorList ();
12431243 // If we parsed a complete, ambiguous init-declarator-list, this
12441244 // is only syntactically-valid if it's followed by a semicolon.
12451245 if (Result == TPResult::Ambiguous && Tok.isNot (tok::semi))
12461246 Result = TPResult::False;
12471247 break ;
12481248
1249- case CIK_DefaultArgument :
1249+ case CachedInitKind::DefaultArgument :
12501250 bool InvalidAsDeclaration = false ;
12511251 Result = TryParseParameterDeclarationClause (
12521252 &InvalidAsDeclaration, /* VersusTemplateArg=*/ true );
@@ -1372,7 +1372,7 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks,
13721372 // and return it. Otherwise, this is a spurious RHS token, which we
13731373 // consume and pass on to downstream code to diagnose.
13741374 case tok::r_paren:
1375- if (CIK == CIK_DefaultArgument )
1375+ if (CIK == CachedInitKind::DefaultArgument )
13761376 return true ; // End of the default argument.
13771377 if (ParenCount && !IsFirstToken)
13781378 return false ;
@@ -1406,7 +1406,7 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks,
14061406 ConsumeStringToken ();
14071407 break ;
14081408 case tok::semi:
1409- if (CIK == CIK_DefaultInitializer )
1409+ if (CIK == CachedInitKind::DefaultInitializer )
14101410 return true ; // End of the default initializer.
14111411 [[fallthrough]];
14121412 default :
0 commit comments