Files
codeql/python/ql/test/library-tests/PointsTo/guarded/PointsTo.ql
2018-11-19 15:15:54 +00:00

8 lines
335 B
Plaintext

import python
from ControlFlowNode f, Object o, ControlFlowNode x
where f.refersTo(o, x) and exists(CallNode call | call.getFunction().getNode().(Name).getId() = "use" and call.getArg(0) = f)
select f.getLocation().getFile().getShortName(), f.getLocation().getStartLine(), f.toString(), o.toString(), x.getLocation().getStartLine()