C++: Add support for constexpr if

This commit is contained in:
Ian Lynagh
2019-07-24 16:59:00 +01:00
parent 9f97165e7b
commit f705c25c74
2 changed files with 89 additions and 0 deletions

View File

@@ -1639,6 +1639,7 @@ case @stmt.kind of
// ... 32 @stmt_at_synchronized deprecated
| 33 = @stmt_handler
// ... 34 @stmt_finally_end deprecated
| 35 = @stmt_constexpr_if
;
type_vla(
@@ -1661,6 +1662,16 @@ if_else(
int else_id: @stmt ref
);
constexpr_if_then(
unique int constexpr_if_stmt: @stmt_constexpr_if ref,
int then_id: @stmt ref
);
constexpr_if_else(
unique int constexpr_if_stmt: @stmt_constexpr_if ref,
int else_id: @stmt ref
);
while_body(
unique int while_stmt: @stmt_while ref,
int body_id: @stmt ref