Skip to content

Commit 339bf13

Browse files
committed
DataFlow: s/flowThroughStepAllowed/validParameterAliasStep.
1 parent e47ad27 commit 339bf13

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ module CppDataFlow implements InputSig {
2121

2222
predicate getAdditionalFlowIntoCallNodeTerm = Private::getAdditionalFlowIntoCallNodeTerm/2;
2323

24-
predicate flowThroughStepAllowed = Private::flowThroughStepAllowed/2;
24+
predicate validParameterAliasStep = Private::validParameterAliasStep/2;
2525
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ private int countNumberOfBranchesUsingParameter(SwitchInstruction switch, Parame
11621162
*/
11631163
bindingset[node1, node2]
11641164
pragma[inline_late]
1165-
predicate flowThroughStepAllowed(Node node1, Node node2) {
1165+
predicate validParameterAliasStep(Node node1, Node node2) {
11661166
// When flow-through summaries are computed we track which parameters flow to out-going parameters.
11671167
// In an example such as:
11681168
// ```

shared/dataflow/codeql/dataflow/DataFlow.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ signature module InputSig {
175175
* computing flow-through summaries.
176176
*/
177177
bindingset[node1, node2]
178-
default predicate flowThroughStepAllowed(Node node1, Node node2) { any() }
178+
default predicate validParameterAliasStep(Node node1, Node node2) { any() }
179179

180180
/**
181181
* Holds if data can flow from `node1` to `node2` through a non-local step

shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ module MakeImplCommon<InputSig Lang> {
552552
exists(Node mid |
553553
parameterValueFlowCand(p, mid, read) and
554554
simpleLocalFlowStep(mid, node) and
555-
flowThroughStepAllowed(mid, node)
555+
validParameterAliasStep(mid, node)
556556
)
557557
or
558558
// read
@@ -672,7 +672,7 @@ module MakeImplCommon<InputSig Lang> {
672672
exists(Node mid |
673673
parameterValueFlow(p, mid, read) and
674674
simpleLocalFlowStep(mid, node) and
675-
flowThroughStepAllowed(mid, node)
675+
validParameterAliasStep(mid, node)
676676
)
677677
or
678678
// read

0 commit comments

Comments
 (0)