Skip to content

Commit a426010

Browse files
authored
Merge pull request github#13621 from MathiasVP/deprecate-ast-dataflow
C++: Deprecate AST dataflow
2 parents ab1f341 + be95d29 commit a426010

File tree

19 files changed

+56
-7
lines changed

19 files changed

+56
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: deprecated
3+
---
4+
* The library `semmle.code.cpp.dataflow.DataFlow` has been deprecated. Please use `semmle.code.cpp.dataflow.new.DataFlow` instead.

cpp/ql/lib/semmle/code/cpp/dataflow/DataFlow.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
import cpp
2121

2222
/**
23+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
24+
*
2325
* Provides classes for performing local (intra-procedural) and
2426
* global (inter-procedural) data flow analyses.
2527
*/
26-
module DataFlow {
28+
deprecated module DataFlow {
2729
import semmle.code.cpp.dataflow.internal.DataFlow
2830
import semmle.code.cpp.dataflow.internal.DataFlowImpl1
2931
}

cpp/ql/lib/semmle/code/cpp/dataflow/DataFlow2.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
import cpp
1313

1414
/**
15+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow2` instead.
16+
*
1517
* Provides classes for performing local (intra-procedural) and
1618
* global (inter-procedural) data flow analyses.
1719
*/
18-
module DataFlow2 {
20+
deprecated module DataFlow2 {
1921
import semmle.code.cpp.dataflow.internal.DataFlowImpl2
2022
}

cpp/ql/lib/semmle/code/cpp/dataflow/DataFlow3.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
import cpp
1313

1414
/**
15+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow3` instead.
16+
*
1517
* Provides classes for performing local (intra-procedural) and
1618
* global (inter-procedural) data flow analyses.
1719
*/
18-
module DataFlow3 {
20+
deprecated module DataFlow3 {
1921
import semmle.code.cpp.dataflow.internal.DataFlowImpl3
2022
}

cpp/ql/lib/semmle/code/cpp/dataflow/DataFlow4.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
import cpp
1313

1414
/**
15+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow4` instead.
16+
*
1517
* Provides classes for performing local (intra-procedural) and
1618
* global (inter-procedural) data flow analyses.
1719
*/
18-
module DataFlow4 {
20+
deprecated module DataFlow4 {
1921
import semmle.code.cpp.dataflow.internal.DataFlowImpl4
2022
}

cpp/ql/lib/semmle/code/cpp/dataflow/TaintTracking.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import semmle.code.cpp.dataflow.DataFlow
1919
import semmle.code.cpp.dataflow.DataFlow2
2020

2121
/**
22+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.TaintTracking` instead.
23+
*
2224
* Provides classes for performing local (intra-procedural) and
2325
* global (inter-procedural) taint-tracking analyses.
2426
*/
25-
module TaintTracking {
27+
deprecated module TaintTracking {
2628
import semmle.code.cpp.dataflow.internal.tainttracking1.TaintTracking
2729
import semmle.code.cpp.dataflow.internal.tainttracking1.TaintTrackingImpl
2830
}

cpp/ql/lib/semmle/code/cpp/dataflow/TaintTracking2.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
*/
1313

1414
/**
15+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.TaintTracking2` instead.
16+
*
1517
* Provides classes for performing local (intra-procedural) and
1618
* global (inter-procedural) taint-tracking analyses.
1719
*/
18-
module TaintTracking2 {
20+
deprecated module TaintTracking2 {
1921
import semmle.code.cpp.dataflow.internal.tainttracking2.TaintTrackingImpl
2022
}

cpp/ql/test/library-tests/dataflow/dataflow-edge-tests/additionalEdges.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:31,6-14)
2+
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:31,31-39)
3+
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:32,7-15)
14
| tryExcept.c:7:7:7:7 | x | tryExcept.c:14:10:14:10 | x |
25
| tryExcept.c:7:13:7:14 | 0 | tryExcept.c:10:9:10:9 | y |
36
| tryExcept.c:10:9:10:9 | y | tryExcept.c:10:5:10:9 | ... = ... |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:4,6-14)
2+
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:4,31-39)
3+
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:5,7-15)
14
| tryExcept.c:7:13:7:14 | 0 | tryExcept.c:10:9:10:9 | y |
25
| tryExcept.c:10:9:10:9 | y | tryExcept.c:10:5:10:9 | ... = ... |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
WARNING: Module DataFlow has been deprecated and may be removed in future (has-parameter-flow-out.ql:5,18-61)
12
failures
23
testFailures

0 commit comments

Comments
 (0)