Skip to content

Commit 816adfa

Browse files
committed
DataFlow: s/flowThroughStepAllowed/validParameterAliasStep.
1 parent 3d8e0b7 commit 816adfa

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ private int countNumberOfBranchesUsingParameter(SwitchInstruction switch, Parame
11441144
*/
11451145
bindingset[node1, node2]
11461146
pragma[inline_late]
1147-
predicate flowThroughStepAllowed(Node node1, Node node2) {
1147+
predicate validParameterAliasStep(Node node1, Node node2) {
11481148
// When flow-through summaries are computed we track which parameters flow to out-going parameters.
11491149
// In an example such as:
11501150
// ```

shared/dataflow/codeql/dataflow/DataFlow.qll

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)