Skip to content

Commit

Permalink
Data flow: Move FlowThrough module into TypeTrackingInput
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Dec 20, 2024
1 parent 828ba23 commit e7df00a
Show file tree
Hide file tree
Showing 4 changed files with 566 additions and 572 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ private predicate localFlowStepWithSummaries(Node node1, Node node2) {
or
readStep(node1, _, node2)
or
DataFlowImplCommon::argumentValueFlowsThrough(node1, _, node2, _)
DataFlowImplCommon::argumentValueFlowsThroughExposedForCppOnly(node1, _, node2, _)
}

/** Holds if `node` flows to a node that is used in a `SwitchInstruction`. */
Expand Down
2 changes: 0 additions & 2 deletions java/ql/test/library-tests/dataflow/getter/getter.expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
| A.java:5:12:5:15 | this | A.java:5:12:5:19 | this.foo | A.java:2:7:2:9 | foo |
| A.java:21:13:21:13 | a | A.java:21:13:21:22 | getFoo(...) | A.java:2:7:2:9 | foo |
| A.java:23:9:23:9 | a | A.java:23:9:23:19 | aGetter(...) | A.java:2:7:2:9 | foo |
| A.java:45:12:45:38 | maybeIdWrap(...) | A.java:45:12:45:42 | maybeIdWrap(...).foo | A.java:2:7:2:9 | foo |
| A.java:49:12:49:38 | maybeIdWrap(...) | A.java:49:12:49:42 | maybeIdWrap(...).foo | A.java:2:7:2:9 | foo |
5 changes: 1 addition & 4 deletions java/ql/test/library-tests/dataflow/getter/getter.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import semmle.code.java.dataflow.internal.DataFlowImplSpecific::Private

from Node n1, ContentSet f, Node n2
where
(
readSet(n1, f, n2) or
getterStep(n1, f, n2)
) and
readSet(n1, f, n2) and
n1.getEnclosingCallable().fromSource()
select n1, n2, f
Loading

0 comments on commit e7df00a

Please sign in to comment.