================
@@ -1297,6 +1286,28 @@ bool Parser::ParseParenExprOrCondition(StmtResult
*InitStmt,
/*MissingOK=*/false);
}
+ if (!getLangOpts().CPlusPlus) {
+ if (InitStmt != nullptr && InitStmt->isUsable()) {
+ // Handle the 2 clauses of declaration: (clause1; clause2).
+ if (!isa<DeclStmt>(InitStmt->get()) &&
+ !isa<AttributedStmt>(InitStmt->get()))
----------------
Sirraide wrote:
```suggestion
if (!isa<DeclStmt, AttributedStmt>(InitStmt->get()))
```
https://github.com/llvm/llvm-project/pull/198244
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits