File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -300,12 +300,17 @@ llvm::DenseMap<ExtensionID, RuleGuard> buildGuards() {
300
300
{rule::contextual_zero::NUMERIC_CONSTANT,
301
301
TOKEN_GUARD (numeric_constant, Tok.text () == " 0" )},
302
302
303
- // FIXME: the init-statement variants are missing?
304
303
{rule::selection_statement::IF__L_PAREN__condition__R_PAREN__statement,
305
304
guardNextTokenNotElse},
305
+ {rule::selection_statement::
306
+ IF__L_PAREN__init_statement__condition__R_PAREN__statement,
307
+ guardNextTokenNotElse},
306
308
{rule::selection_statement::
307
309
IF__CONSTEXPR__L_PAREN__condition__R_PAREN__statement,
308
310
guardNextTokenNotElse},
311
+ {rule::selection_statement::
312
+ IF__CONSTEXPR__L_PAREN__init_statement__condition__R_PAREN__statement,
313
+ guardNextTokenNotElse},
309
314
310
315
// The grammar distinguishes (only) user-defined vs plain string literals,
311
316
// where the clang lexer distinguishes (only) encoding types.
You can’t perform that action at this time.
0 commit comments