Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f91e06b + 264301b commit 28304e4Copy full SHA for 28304e4
1 file changed
cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll
@@ -4,6 +4,7 @@
4
import cpp
5
private import semmle.code.cpp.dataflow.internal.FlowVar
6
7
+cached
8
private newtype TNode =
9
TExprNode(Expr e) or
10
TParameterNode(Parameter p) { exists(p.getFunction().getBlock()) } or
@@ -161,6 +162,7 @@ private Variable asVariable(Node node) {
161
162
* Holds if data flows from `nodeFrom` to `nodeTo` in exactly one local
163
* (intra-procedural) step.
164
*/
165
166
predicate localFlowStep(Node nodeFrom, Node nodeTo) {
167
// Expr -> Expr
168
exprToExprStep_nocfg(nodeFrom.asExpr(), nodeTo.asExpr())
0 commit comments