Skip to content

Commit 408a550

Browse files
authored
Merge pull request github#15727 from geoffw0/qldoc4
C++: Mark internal files in the old dataflow library as deprecated
2 parents 4bb725c + 2e66392 commit 408a550

15 files changed

+40
-2
lines changed

cpp/ql/lib/semmle/code/cpp/controlflow/SubBasicBlocks.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: There are two copies of this file, and they must be kept identical:
22
// - semmle/code/cpp/controlflow/SubBasicBlocks.qll
3-
// - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll
3+
// - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll [now DEPRECATED]
44
//
55
// The second one is a private copy of the `SubBasicBlocks` library for
66
// internal use by the data flow library. Having an extra copy prevents

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

0 commit comments

Comments
 (0)