C++: Support C++20 range-based for initializers

This commit is contained in:
Jeroen Ketema
2024-02-16 15:03:52 +01:00
parent da3ff4813f
commit dd39fa0bde
31 changed files with 9498 additions and 195 deletions

View File

@@ -2050,8 +2050,11 @@ switch_body(
int body_id: @stmt ref
);
@stmt_for_or_range_based_for = @stmt_for
| @stmt_range_based_for;
for_initialization(
unique int for_stmt: @stmt_for ref,
unique int for_stmt: @stmt_for_or_range_based_for ref,
int init_id: @stmt ref
);