CppEditor: Add support for init statements in if conditions

Fixes: QTCREATORBUG-29182
Change-Id: I9b7969da694b368236246123ad0028d8e754e903
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2023-05-24 15:18:48 +02:00
parent 07764bdf15
commit c8f29b9e01
9 changed files with 68 additions and 6 deletions

View File

@@ -1779,6 +1779,8 @@ public:
int if_token = 0;
int constexpr_token = 0;
int lparen_token = 0;
DeclarationAST *initDecl = nullptr;
StatementAST *initStmt = nullptr;
ExpressionAST *condition = nullptr;
int rparen_token = 0;
StatementAST *statement = nullptr;