@@ -266,7 +266,7 @@ void Parser::ParseCXXNonStaticMemberInitializer(Decl *VarD) {
266
266
ConsumeAndStoreUntil (tok::r_brace, Toks, /* StopAtSemi=*/ true );
267
267
} else {
268
268
// Consume everything up to (but excluding) the comma or semicolon.
269
- ConsumeAndStoreInitializer (Toks, CIK_DefaultInitializer );
269
+ ConsumeAndStoreInitializer (Toks, CachedInitKind::DefaultInitializer );
270
270
}
271
271
272
272
// 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,
1238
1238
TPResult Result = TPResult::Error;
1239
1239
ConsumeToken ();
1240
1240
switch (CIK) {
1241
- case CIK_DefaultInitializer :
1241
+ case CachedInitKind::DefaultInitializer :
1242
1242
Result = TryParseInitDeclaratorList ();
1243
1243
// If we parsed a complete, ambiguous init-declarator-list, this
1244
1244
// is only syntactically-valid if it's followed by a semicolon.
1245
1245
if (Result == TPResult::Ambiguous && Tok.isNot (tok::semi))
1246
1246
Result = TPResult::False;
1247
1247
break ;
1248
1248
1249
- case CIK_DefaultArgument :
1249
+ case CachedInitKind::DefaultArgument :
1250
1250
bool InvalidAsDeclaration = false ;
1251
1251
Result = TryParseParameterDeclarationClause (
1252
1252
&InvalidAsDeclaration, /* VersusTemplateArg=*/ true );
@@ -1372,7 +1372,7 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks,
1372
1372
// and return it. Otherwise, this is a spurious RHS token, which we
1373
1373
// consume and pass on to downstream code to diagnose.
1374
1374
case tok::r_paren:
1375
- if (CIK == CIK_DefaultArgument )
1375
+ if (CIK == CachedInitKind::DefaultArgument )
1376
1376
return true ; // End of the default argument.
1377
1377
if (ParenCount && !IsFirstToken)
1378
1378
return false ;
@@ -1406,7 +1406,7 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks,
1406
1406
ConsumeStringToken ();
1407
1407
break ;
1408
1408
case tok::semi:
1409
- if (CIK == CIK_DefaultInitializer )
1409
+ if (CIK == CachedInitKind::DefaultInitializer )
1410
1410
return true ; // End of the default initializer.
1411
1411
[[fallthrough]];
1412
1412
default :
0 commit comments