mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
439 B
Plaintext
12 lines
439 B
Plaintext
import cpp
|
|
|
|
from ControlFlowNode x, ControlFlowNode y, string entryPoint
|
|
where
|
|
y = x.getASuccessor() and
|
|
if exists(Function f | f.getEntryPoint() = x)
|
|
then forex(Function f | f.getEntryPoint() = x | entryPoint = f.toString())
|
|
else entryPoint = "-----"
|
|
select x.getLocation().getStartLine(),
|
|
count(x.getAPredecessor*()), // This helps order things sensibly
|
|
x.toString(), entryPoint, y.getLocation().getStartLine(), y.toString()
|