Skip to content

Commit 83050d9

Browse files
committed
C++: Stub implementations for clearsContent()
1 parent c01f570 commit 83050d9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ predicate readStep(Node node1, Content f, Node node2) {
216216
)
217217
}
218218

219+
/**
220+
* Holds if values stored inside content `c` are cleared at node `n`.
221+
*/
222+
predicate clearsContent(Node n, Content c) {
223+
none() // stub implementation
224+
}
225+
219226
/**
220227
* Gets a representative (boxed) type for `t` for the purpose of pruning
221228
* possible flow. A single type is used for all numeric types to account for

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ predicate readStep(Node node1, Content f, Node node2) {
226226
)
227227
}
228228

229+
/**
230+
* Holds if values stored inside content `c` are cleared at node `n`.
231+
*/
232+
predicate clearsContent(Node n, Content c) {
233+
none() // stub implementation
234+
}
235+
229236
/**
230237
* Gets a representative (boxed) type for `t` for the purpose of pruning
231238
* possible flow. A single type is used for all numeric types to account for

0 commit comments

Comments
 (0)