mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: Add upgrade and downgrade scripts
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
class Type extends @type {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
class Expr extends @expr {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
from Type decltype, Expr expr, Type basetype, boolean parentheses
|
||||||
|
where decltypes(decltype, expr, _, basetype, parentheses)
|
||||||
|
select decltype, expr, basetype, parentheses
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
class Type extends @type {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
predicate derivedType(Type type, string name, int kind, Type type_id) {
|
||||||
|
derivedtypes(type, name, kind, type_id)
|
||||||
|
}
|
||||||
|
|
||||||
|
predicate typeTransformation(Type type, string name, int kind, Type type_id) {
|
||||||
|
type_operators(type, _, _, type_id) and
|
||||||
|
name = "" and
|
||||||
|
kind = 3 // @type_with_specifiers
|
||||||
|
}
|
||||||
|
|
||||||
|
from Type type, string name, int kind, Type type_id
|
||||||
|
where
|
||||||
|
derivedType(type, name, kind, type_id) or
|
||||||
|
typeTransformation(type, name, kind, type_id)
|
||||||
|
select type, name, kind, type_id
|
||||||
2491
cpp/downgrades/9a7c3c14c1076f64b871719117a558733d987b48/old.dbscheme
Normal file
2491
cpp/downgrades/9a7c3c14c1076f64b871719117a558733d987b48/old.dbscheme
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
|||||||
|
description: Support C23 typeof and typeof_unqual
|
||||||
|
compatibility: backwards
|
||||||
|
decltypes.rel: run decltypes.qlo
|
||||||
|
derivedtypes.rel: run derivedtypes.qlo
|
||||||
|
type_operators.rel: delete
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
class Type extends @type {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
class Expr extends @expr {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
from Type decltype, Expr expr, Type basetype, boolean parentheses
|
||||||
|
where decltypes(decltype, expr, basetype, parentheses)
|
||||||
|
select decltype, expr, 0, basetype, parentheses
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
|||||||
|
description: Support C23 typeof and typeof_unqual
|
||||||
|
compatibility: partial
|
||||||
|
decltypes.rel: run decltypes.qlo
|
||||||
Reference in New Issue
Block a user