Files
codeql/python/ql/src/analysis/PointsToFailure.ql
2020-03-30 11:59:10 +02:00

16 lines
396 B
Plaintext

/**
* @name points-to fails for expression.
* @description Expression does not "point-to" an object which prevents type inference.
* @kind problem
* @id py/points-to-failure
* @problem.severity info
* @tags debug
* @deprecated
*/
import python
from Expr e
where exists(ControlFlowNode f | f = e.getAFlowNode() | not f.refersTo(_))
select e, "Expression does not 'point-to' any object."