We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecbd115 commit bb62505Copy full SHA for bb62505
clang/lib/Parse/ParseStmt.cpp
@@ -1552,9 +1552,7 @@ StmtResult Parser::ParseIfStatement(SourceLocation *TrailingElseLoc) {
1552
: diag::ext_consteval_if);
1553
IsConsteval = true;
1554
ConstevalLoc = ConsumeToken();
1555
- }
1556
-
1557
- if (Tok.is(tok::code_completion)) {
+ } else if (Tok.is(tok::code_completion)) {
1558
cutOffParsing();
1559
Actions.CodeCompletion().CodeCompleteKeywordAfterIf(NotLocation.isValid());
1560
return StmtError();
0 commit comments