Skip to content

Commit

Permalink
Merge pull request #12646 from igfoo/igfoo/expanded_args
Browse files Browse the repository at this point in the history
Java: Store expanded args in the database
  • Loading branch information
igfoo authored Mar 31, 2023
2 parents 1e1a692 + 3d85c4f commit c1a7d7f
Show file tree
Hide file tree
Showing 11 changed files with 6,824 additions and 1,418 deletions.
1,255 changes: 1,255 additions & 0 deletions java/downgrades/7cbc85b1f3ecda39661ad4806dedbd0973d2c4c0/old.dbscheme

Large diffs are not rendered by default.

1,242 changes: 1,242 additions & 0 deletions java/downgrades/7cbc85b1f3ecda39661ad4806dedbd0973d2c4c0/semmlecode.dbscheme

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Remove compilation_expanded_args
compatibility: full
compilation_expanded_args.rel: delete
4 changes: 4 additions & 0 deletions java/ql/lib/change-notes/2023-03-22-expanded-args.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: feature
---
* Predicates `Compilation.getExpandedArgument` and `Compilation.getAnExpandedArgument` has been added.
4 changes: 4 additions & 0 deletions java/ql/lib/change-notes/2023-03-31-compilation-names.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The filenames embedded in `Compilation.toString()` now use `/` as the path separator on all platforms.
13 changes: 13 additions & 0 deletions java/ql/lib/config/semmlecode.dbscheme
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ compilation_args(
string arg : string ref
);

/**
* The expanded arguments that were passed to the extractor for a
* compiler invocation. This is similar to `compilation_args`, but
* for a `@@@someFile` argument, it includes the arguments from that
* file, rather than just taking the argument literally.
*/
#keyset[id, num]
compilation_expanded_args(
int id : @compilation ref,
int num : int ref,
string arg : string ref
);

/**
* The source files that are compiled by a compiler invocation.
* If `id` is for the compiler invocation
Expand Down
Loading

0 comments on commit c1a7d7f

Please sign in to comment.