Skip to content

Commit 3abae04

Browse files
committed
Dataflow: Add dummy DataFlowSecondLevelScope implementations.
These could be an empty type, but Unit was available and it probably doesn't matter.
1 parent 3e6a9fb commit 3abae04

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) { no
282282
/** Extra data-flow steps needed for lambda flow analysis. */
283283
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
284284

285+
class DataFlowSecondLevelScope = Unit;
286+
285287
/**
286288
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
287289
* side-effect, resulting in a summary from `p` to itself.

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -2739,6 +2739,8 @@ predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preserves
27392739
)
27402740
}
27412741

2742+
class DataFlowSecondLevelScope = Unit;
2743+
27422744
/**
27432745
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
27442746
* side-effect, resulting in a summary from `p` to itself.

go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) { no
412412
/** Extra data-flow steps needed for lambda flow analysis. */
413413
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
414414

415+
class DataFlowSecondLevelScope = Unit;
416+
415417
/**
416418
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
417419
* side-effect, resulting in a summary from `p` to itself.

java/ql/lib/semmle/code/java/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
576576
/** Extra data-flow steps needed for lambda flow analysis. */
577577
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
578578

579+
class DataFlowSecondLevelScope = Unit;
580+
579581
/**
580582
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
581583
* side-effect, resulting in a summary from `p` to itself.

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
10551055
/** Extra data-flow steps needed for lambda flow analysis. */
10561056
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
10571057

1058+
class DataFlowSecondLevelScope = Unit;
1059+
10581060
/**
10591061
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
10601062
* side-effect, resulting in a summary from `p` to itself.

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
21642164
/** Extra data-flow steps needed for lambda flow analysis. */
21652165
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
21662166

2167+
class DataFlowSecondLevelScope = Unit;
2168+
21672169
/**
21682170
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
21692171
* side-effect, resulting in a summary from `p` to itself.

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

+2
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
13961396
/** Extra data-flow steps needed for lambda flow analysis. */
13971397
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
13981398

1399+
class DataFlowSecondLevelScope = Unit;
1400+
13991401
/**
14001402
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
14011403
* side-effect, resulting in a summary from `p` to itself.

0 commit comments

Comments
 (0)