C++: Remove co_await range-based-for support for now

Initial impl won't support it
This commit is contained in:
Ian Lynagh
2020-08-26 18:01:10 +01:00
parent 78b522722c
commit cca276be84
2 changed files with 2 additions and 15 deletions

View File

@@ -380,7 +380,7 @@ class ConstexprIfStmt extends ConditionalStmt, @stmt_constexpr_if {
}
}
private class TLoop = @stmt_while or @stmt_end_test_while or @range_based_for_stmt or @stmt_for;
private class TLoop = @stmt_while or @stmt_end_test_while or @stmt_range_based_for or @stmt_for;
/**
* A C/C++ loop, that is, either a 'while' loop, a 'for' loop, or a
@@ -832,7 +832,7 @@ class DoStmt extends Loop, @stmt_end_test_while {
* ```
* where `begin_expr` and `end_expr` depend on the type of `xs`.
*/
class RangeBasedForStmt extends Loop, @range_based_for_stmt {
class RangeBasedForStmt extends Loop, @stmt_range_based_for {
override string getAPrimaryQlClass() { result = "RangeBasedForStmt" }
/**
@@ -908,16 +908,6 @@ class RangeBasedForStmt extends Loop, @range_based_for_stmt {
LocalVariable getAnIterationVariable() { result = getBeginVariable() }
}
/**
* A C/C++ 'for await' statement.
*
* This represents a range-based 'for await' statement.
class RangeBasedForAwaitStmt extends Loop, @stmt_range_based_for_co_await {
override string getAPrimaryQlClass() { result = "RangeBasedForAwaitStmt" }
override string toString() { result = "for co_await(...:...) ..." }
}
/**
* A C/C++ 'for' statement.
*

View File

@@ -1856,11 +1856,8 @@ case @stmt.kind of
// ... 34 @stmt_finally_end deprecated
| 35 = @stmt_constexpr_if
| 37 = @stmt_co_return
| 38 = @stmt_range_based_for_co_await
;
@range_based_for_stmt = @stmt_range_based_for | @stmt_range_based_for_co_await;
type_vla(
int type_id: @type ref,
int decl: @stmt_vla_decl ref