Skip to content

Commit 5c4543f

Browse files
committed
C++: Mark internal files in the old dataflow library as deprecated (the public imports already are).
1 parent e13d6cd commit 5c4543f

14 files changed

+40
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*
24
* Provides a local analysis for identifying where a variable address
35
* is effectively taken. Array-like offsets are allowed to pass through but
46
* not field-like offsets.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*/
4+
15
private import cpp
26
private import DataFlowPrivate
37
private import DataFlowUtil
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*/
4+
15
private import DataFlowImplSpecific
26
private import codeql.dataflow.internal.DataFlowImpl
37
import MakeImpl<CppOldDataFlow>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*/
4+
15
private import DataFlowImplSpecific
26
private import codeql.dataflow.internal.DataFlowImplCommon
37
import MakeImplCommon<CppOldDataFlow>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*
24
* Provides consistency queries for checking invariants in the language-specific
35
* data-flow classes and predicates.
46
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*
24
* Provides C++-specific definitions for use in the data flow library.
35
*/
46

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*/
4+
15
private import cpp
26
private import DataFlowUtil
37
private import DataFlowDispatch

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*
24
* Provides C++-specific definitions for use in the data flow library.
35
*/
46

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
3+
*
24
* Provides a class for handling variables in the data flow analysis.
35
*/
46

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// non-monotonic recursion errors in queries that use both the data flow
88
// library and the `SubBasicBlocks` library.
99
/**
10+
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
11+
*
1012
* Provides the `SubBasicBlock` class, used for partitioning basic blocks in
1113
* smaller pieces.
1214
*/

0 commit comments

Comments
 (0)