Skip to content

Commit c1a7d7f

Browse files
authored
Merge pull request github#12646 from igfoo/igfoo/expanded_args
Java: Store expanded args in the database
2 parents 1e1a692 + 3d85c4f commit c1a7d7f

File tree

11 files changed

+6824
-1418
lines changed

11 files changed

+6824
-1418
lines changed

java/downgrades/7cbc85b1f3ecda39661ad4806dedbd0973d2c4c0/old.dbscheme

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

java/downgrades/7cbc85b1f3ecda39661ad4806dedbd0973d2c4c0/semmlecode.dbscheme

Lines changed: 1242 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: Remove compilation_expanded_args
2+
compatibility: full
3+
compilation_expanded_args.rel: delete
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: feature
3+
---
4+
* Predicates `Compilation.getExpandedArgument` and `Compilation.getAnExpandedArgument` has been added.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The filenames embedded in `Compilation.toString()` now use `/` as the path separator on all platforms.

java/ql/lib/config/semmlecode.dbscheme

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ compilation_args(
6060
string arg : string ref
6161
);
6262

63+
/**
64+
* The expanded arguments that were passed to the extractor for a
65+
* compiler invocation. This is similar to `compilation_args`, but
66+
* for a `@@@someFile` argument, it includes the arguments from that
67+
* file, rather than just taking the argument literally.
68+
*/
69+
#keyset[id, num]
70+
compilation_expanded_args(
71+
int id : @compilation ref,
72+
int num : int ref,
73+
string arg : string ref
74+
);
75+
6376
/**
6477
* The source files that are compiled by a compiler invocation.
6578
* If `id` is for the compiler invocation

0 commit comments

Comments
 (0)