Skip to content

Commit bba152d

Browse files
committed
Merge branch 'main' into ir-for-vacuous-destructor-calls
2 parents dc3b78d + f7b2de8 commit bba152d

File tree

56 files changed

+6439
-1138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+6439
-1138
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Added destructors for named objects to the intermediate representation.

cpp/ql/lib/semmle/code/cpp/Enclosing.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@ Element exprEnclosingElement(Expr e) {
6060
)
6161
else result = de.getDeclaration()
6262
)
63+
or
64+
result.(Stmt).getAnImplicitDestructorCall() = e
6365
}

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

0 commit comments

Comments
 (0)