mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C++: Remove co_await range-based-for support for now
Initial impl won't support it
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user