mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
12 lines
348 B
Plaintext
12 lines
348 B
Plaintext
import cpp
|
|
import semmle.code.cpp.controlflow.Dominance
|
|
|
|
from Function func, ControlFlowNode dominator, ControlFlowNode node
|
|
where
|
|
iDominates(dominator, node)
|
|
and dominator.getControlFlowScope() = func
|
|
select
|
|
func.getName(),
|
|
dominator.getLocation().getStartLine(), dominator.toString(),
|
|
node.getLocation().getStartLine(), node.toString()
|