Files
codeql/docs/language/ql-training/query-examples/cpp/control-flow-cpp-2.ql
2019-09-05 08:40:36 +01:00

8 lines
206 B
Plaintext

import cpp
from FunctionCall free, LocalScopeVariable v, VariableAccess u
where freeCall(free, v.getAnAccess())
and u = v.getAnAccess()
and u.isRValue()
and free.getASuccessor+() = u
select free, u