Files
codeql/python/ql/test/library-tests/PointsTo/new/VarUses.ql
2020-03-30 11:59:10 +02:00

10 lines
298 B
Plaintext

import python
import semmle.python.pointsto.PointsTo
import Util
from SsaSourceVariable var, ControlFlowNode use
where
(use = var.getAUse() or var.hasRefinement(use, _)) and
not var instanceof SpecialSsaSourceVariable
select locate(use.getLocation(), "abd"), var.getName(), use.toString()