Files
codeql/cpp/ql/test/library-tests/locations/charloc/charloc.ql
Geoffrey White 6f05fd4839 C++: Autoformat.
2021-06-07 11:01:00 +01:00

9 lines
269 B
Plaintext

import cpp
from File f, Expr e, Location l, int start, int end
where
e.getLocation() = l and
l.charLoc(f, start, end)
select f.getBaseName(), e.toString(), start, end,
concat(Expr e2, Location l2 | e2.getLocation() = l2 and l.subsumes(l2) | e2.toString(), ", ")