Skip to content

Commit 2c0a456

Browse files
committed
C++: Add default implementation of StateConfigSig::isAdditionalFlowStep/4
1 parent c73cd73 commit 2c0a456

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ signature module StateConfigSig {
131131
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
132132
* This step is only applicable in `state1` and updates the flow state to `state2`.
133133
*/
134-
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2);
134+
default predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
135+
none()
136+
}
135137

136138
/**
137139
* Holds if an arbitrary number of implicit read steps of content `c` may be

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ signature module StateConfigSig {
131131
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
132132
* This step is only applicable in `state1` and updates the flow state to `state2`.
133133
*/
134-
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2);
134+
default predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
135+
none()
136+
}
135137

136138
/**
137139
* Holds if an arbitrary number of implicit read steps of content `c` may be

0 commit comments

Comments
 (0)