C++: add upgrade and downgrade scripts

This commit is contained in:
idrissrio
2025-06-12 14:27:23 +02:00
parent e6faebf850
commit 7152e68a4d
7 changed files with 9992 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
class Stmt extends @stmt {
string toString() { none() }
}
class Location extends @location_stmt {
string toString() { none() }
}
from Stmt id, int kind, Location loc, int new_kind
where
stmts(id, kind, loc) and
if kind = 40 then new_kind = 4 else new_kind = kind
select id, new_kind, loc

View File

@@ -0,0 +1,3 @@
description: Support `__leave` statement
compatibility: backwards
stmts.rel: run stmts.qlo