Skip to content

Commit e9a13ae

Browse files
committed
Merge branch 'main' into resolvable
2 parents 6e627f6 + 4b0b038 commit e9a13ae

File tree

415 files changed

+15403
-7823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+15403
-7823
lines changed

cpp/downgrades/f0156f5f88ab5967c79162012c20f30600ca5ebf/old.dbscheme

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

cpp/downgrades/f0156f5f88ab5967c79162012c20f30600ca5ebf/semmlecode.cpp.dbscheme

Lines changed: 2323 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: Implement compilation_build_mode/2
2+
compatibility: full
3+
compilation_build_mode.rel: delete

cpp/ql/lib/semmle/code/cpp/Compilation.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,7 @@ class Compilation extends @compilation {
112112
* termination, but crashing due to something like a segfault is not.
113113
*/
114114
predicate normalTermination() { compilation_finished(this, _, _) }
115+
116+
/** Holds if this compilation was compiled using the "none" build mode. */
117+
predicate buildModeNone() { compilation_build_mode(this, 0) }
115118
}

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ compilation_args(
4646
string arg : string ref
4747
);
4848

49+
/**
50+
* Optionally, record the build mode for each compilation.
51+
*/
52+
compilation_build_mode(
53+
unique int id : @compilation ref,
54+
int mode : int ref
55+
);
56+
57+
/*
58+
case @compilation_build_mode.mode of
59+
0 = @build_mode_none
60+
| 1 = @build_mode_manual
61+
| 2 = @build_mode_auto
62+
;
63+
*/
64+
4965
/**
5066
* The source files that are compiled by a compiler invocation.
5167
* If `id` is for the compiler invocation

0 commit comments

Comments
 (0)