mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
15 lines
343 B
Plaintext
15 lines
343 B
Plaintext
import cpp
|
|
|
|
string getASuccessorOrNone(ControlFlowNode n) {
|
|
if exists(n.getASuccessor())
|
|
then result = n.getASuccessor().toString()
|
|
else result = "None"
|
|
}
|
|
|
|
from ControlFlowNode n
|
|
select n.getLocation().getStartLine(),
|
|
count(n.getAPredecessor*()), // This helps order things sensibly
|
|
n,
|
|
getASuccessorOrNone(n)
|
|
|