Skip to content

Commit 86ca48b

Browse files
committed
C++: Tweak dbscheme for source_files
1 parent a8e93e7 commit 86ca48b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,22 @@ trap_filename(
245245
string filename: string ref
246246
);
247247

248+
/**
249+
* Gives the name for the source file.
250+
*/
251+
source_file_name(
252+
int sf: @source_file,
253+
string name: string ref
254+
);
255+
248256
/**
249257
* In `build-mode: none` overlay mode, indicates that `source_file`
250258
* (`/path/to/foo.c`) uses the TRAP file `trap_file`; i.e. it is the
251259
* TRAP file corresponding to `foo.c`, something it transitively
252260
* includes, or a template instantiation it transitively uses.
253261
*/
254262
source_file_uses_trap(
255-
string source_file: string ref,
263+
int source_file: @source_file ref,
256264
int trap_file: @trap ref
257265
);
258266

0 commit comments

Comments
 (0)