Files
codeql/python/ql/test/library-tests/PointsTo/general/interesting.qll
Taus Brock-Nannestad f07a7bf8cf Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated
methods moving around), but other than that everything should be
straight-forward.
2020-07-07 15:43:52 +02:00

14 lines
336 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.getName().matches("%test.py%") and
exists(Comment c |
c.getLocation().getStartLine() < line and
c.getLocation().getFile() = f
)
)
}