Skip to content

Commit c5f6820

Browse files
committed
C++ overlay: Add trap_filename, source_file_uses_trap, in_trap
1 parent 5ad42f8 commit c5f6820

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,34 @@ extractor_version(
236236
string frontend_version: string ref
237237
)
238238

239+
/**
240+
* Gives the TRAP filename that `trap` is associated with.
241+
* For debugging only.
242+
*/
243+
trap_filename(
244+
int trap: @trap,
245+
string filename: string ref
246+
);
247+
248+
/**
249+
* In `build-mode: none` overlay mode, indicates that `source_file`
250+
* (`/path/to/foo.c`) uses the TRAP file `trap_file`; i.e. it is the
251+
* TRAP file corresponding to `foo.c`, something it transitively
252+
* includes, or a template instantiation it transitively uses.
253+
*/
254+
source_file_uses_trap(
255+
string source_file: string ref,
256+
int trap_file: @trap ref
257+
);
258+
259+
/**
260+
* Holds if there is a definition of `element` in TRAP file `trap_file`.
261+
*/
262+
in_trap(
263+
int element: @element ref,
264+
int trap_file: @trap ref
265+
);
266+
239267
pch_uses(
240268
int pch: @pch ref,
241269
int compilation: @compilation ref,

0 commit comments

Comments
 (0)