Skip to content

Commit 2cedabf

Browse files
committed
C++ / JS / python: Be consistent in TRAP sections
This makes the /*- Database metadata -*/ and /*- Overlay support -*/ sections consistent between the languages.
1 parent adc13e3 commit 2cedabf

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,6 +2379,8 @@ link_parent(
23792379
int link_target : @link_target ref
23802380
);
23812381

2382+
/*- Database metadata -*/
2383+
23822384
/**
23832385
* The CLI will automatically emit applicable tuples for this table,
23842386
* such as `databaseMetadata("isOverlay", "true")` when building an
@@ -2389,6 +2391,8 @@ databaseMetadata(
23892391
string value: string ref
23902392
);
23912393

2394+
/*- Overlay support -*/
2395+
23922396
/**
23932397
* The CLI will automatically emit tuples for each new/modified/deleted file
23942398
* when building an overlay database.

javascript/ql/lib/semmlecode.javascript.dbscheme

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,11 +1195,23 @@ configLocations(
11951195
@configLocatable = @config | @configName | @configValue;
11961196

11971197
/*- Database metadata -*/
1198+
1199+
/**
1200+
* The CLI will automatically emit applicable tuples for this table,
1201+
* such as `databaseMetadata("isOverlay", "true")` when building an
1202+
* overlay database.
1203+
*/
11981204
databaseMetadata(
11991205
string metadataKey: string ref,
12001206
string value: string ref
12011207
);
12021208

1209+
/*- Overlay support -*/
1210+
1211+
/**
1212+
* The CLI will automatically emit tuples for each new/modified/deleted file
1213+
* when building an overlay database.
1214+
*/
12031215
overlayChangedFiles(
12041216
string path: string ref
12051217
);

python/ql/lib/semmlecode.python.dbscheme

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,24 @@ externalData(
4747
string value : string ref
4848
);
4949

50-
/*- Overlay support -*/
50+
/*- Database metadata -*/
5151

5252
/**
53-
* The CLI will automatically emit the tuple `databaseMetadata("isOverlay", "true")`,
54-
* along with an `overlayChangedFiles` tuple for each new/modified/deleted file,
55-
* when building an overlay database, and these can be used by the discard predicates.
53+
* The CLI will automatically emit applicable tuples for this table,
54+
* such as `databaseMetadata("isOverlay", "true")` when building an
55+
* overlay database.
5656
*/
5757
databaseMetadata(
5858
string metadataKey : string ref,
5959
string value : string ref
6060
);
6161

62+
/*- Overlay support -*/
63+
64+
/**
65+
* The CLI will automatically emit tuples for each new/modified/deleted file
66+
* when building an overlay database.
67+
*/
6268
overlayChangedFiles(
6369
string path : string ref
6470
);

0 commit comments

Comments
 (0)