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 51ba9cb commit be9e6aaCopy full SHA for be9e6aa
clang/lib/Parse/ParseStmt.cpp
@@ -2161,10 +2161,10 @@ StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) {
2161
SourceLocation SecondPartStart = Tok.getLocation();
2162
Sema::ConditionKind CK = Sema::ConditionKind::Boolean;
2163
SecondPart = ParseCXXCondition(
2164
- nullptr, ForLoc, CK,
+ /*InitStmt=*/nullptr, ForLoc, CK,
2165
// FIXME: recovery if we don't see another semi!
2166
/*MissingOK=*/true, MightBeForRangeStmt ? &ForRangeInfo : nullptr,
2167
- /*EnterForConditionScope*/ true);
+ /*EnterForConditionScope=*/true);
2168
2169
if (ForRangeInfo.ParsedForRangeDecl()) {
2170
Diag(FirstPart.get() ? FirstPart.get()->getBeginLoc()
0 commit comments