Skip to content

Commit 7b3bdee

Browse files
committed
C++: Update dbscheme and add upgrade and downgrade scripts
1 parent ea9f49e commit 7b3bdee

File tree

8 files changed

+8867
-1
lines changed

8 files changed

+8867
-1
lines changed

cpp/downgrades/d77c09d8bdc172c9201dec293de1e14c931d3f05/old.dbscheme

Lines changed: 2212 additions & 0 deletions
Large diffs are not rendered by default.

cpp/downgrades/d77c09d8bdc172c9201dec293de1e14c931d3f05/semmlecode.cpp.dbscheme

Lines changed: 2212 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
description: Remove _Float128 type
2+
compatibility: full

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ case @builtintype.kind of
608608
| 47 = @std_float64 // _Float64
609609
| 48 = @float64x // _Float64x
610610
| 49 = @std_float128 // _Float128
611-
| 50 = @float128x // _Float128x
611+
// ... 50 _Float128x
612612
| 51 = @char8_t
613613
| 52 = @float16 // _Float16
614614
| 53 = @complex_float16 // _Complex _Float16
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class BuiltinType extends @builtintype {
2+
string toString() { none() }
3+
}
4+
5+
predicate isFloat128xBuiltinType(BuiltinType type) {
6+
exists(int kind | builtintypes(type, _, kind, _, _, _) | kind = 50)
7+
}
8+
9+
from BuiltinType type, string name, int kind, int kind_new, int size, int sign, int alignment
10+
where
11+
builtintypes(type, name, kind, size, sign, alignment) and
12+
if isFloat128xBuiltinType(type) then kind_new = 1 else kind_new = kind
13+
select type, name, kind_new, size, sign, alignment

0 commit comments

Comments
 (0)