mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
C++: Add an upgrade script
This commit is contained in:
2109
cpp/upgrades/025827d85c3f44a7fd52d4fad636e9a4141f12dd/old.dbscheme
Normal file
2109
cpp/upgrades/025827d85c3f44a7fd52d4fad636e9a4141f12dd/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,21 @@
|
||||
class StaticAssert extends @static_assert {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Expr extends @expr {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Location extends @location_default {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class NameSpace extends @namespace {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from StaticAssert sa, Expr condition, string message, Location loc, NameSpace ns
|
||||
where
|
||||
static_asserts(sa, condition, message, loc) and
|
||||
namespaces(ns, "")
|
||||
select sa, condition, message, loc, ns
|
||||
@@ -0,0 +1,4 @@
|
||||
description: Give static_assert's an enclosing element
|
||||
compatibility: partial
|
||||
static_asserts.rel: run static_asserts.qlo
|
||||
|
||||
Reference in New Issue
Block a user