Files
codeql/python/ql/test/library-tests/ControlFlow/augassign/SSA.ql
2018-11-19 15:15:54 +00:00

13 lines
355 B
Plaintext

/**
* @name SSA
* @description Insert description here...
* @kind problem
* @problem.severity warning
*/
import python
from ControlFlowNode defn, SsaVariable v, AugAssign a, BinaryExpr b
where v.getDefinition() = defn and a.getOperation() = b and b.contains((Expr)defn.getNode())
select defn.toString(), defn.getNode().getLocation().getStartLine()