CodeQL library for C/C++
codeql/cpp-all 0.13.1 (changelog, source)
Search

Predicate readStep

Holds if data can flow from node1 to node2 via a read of f. Thus, node1 references an object with a field f whose value ends up in node2.

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate
predicate readStep(Node node1, ContentSet c, Node node2)