Skip to content

Commit 3a7d795

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 2921aff commit 3a7d795

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) { no
286286
/** Extra data-flow steps needed for lambda flow analysis. */
287287
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
288288

289+
class DataFlowSecondLevelScope = Unit;
290+
289291
/**
290292
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
291293
* side-effect, resulting in a summary from `p` to itself.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,8 @@ predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preserves
30133013
preservesValue = true
30143014
}
30153015

3016+
class DataFlowSecondLevelScope = Unit;
3017+
30163018
/**
30173019
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
30183020
* side-effect, resulting in a summary from `p` to itself.

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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
10571057
/** Extra data-flow steps needed for lambda flow analysis. */
10581058
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
10591059

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,8 @@ predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
21742174
/** Extra data-flow steps needed for lambda flow analysis. */
21752175
predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preservesValue) { none() }
21762176

2177+
class DataFlowSecondLevelScope = Unit;
2178+
21772179
/**
21782180
* Holds if flow is allowed to pass from parameter `p` and back to itself as a
21792181
* side-effect, resulting in a summary from `p` to itself.

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

Lines changed: 2 additions & 0 deletions
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)