Files
codeql/python/ql/test/library-tests/PointsTo/general/interesting.qll
2022-03-09 18:28:12 +01:00

14 lines
344 B
Plaintext

import python
predicate of_interest(ControlFlowNode n, int line) {
exists(Location l, File f | l = n.getLocation() |
line = l.getStartLine() and
f = l.getFile() and
f.getAbsolutePath().matches("%test.py%") and
exists(Comment c |
c.getLocation().getStartLine() < line and
c.getLocation().getFile() = f
)
)
}