mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
13 lines
398 B
Plaintext
13 lines
398 B
Plaintext
import cpp
|
|
import semmle.code.cpp.controlflow.Dominance
|
|
|
|
from Function func, BasicBlock dominator, BasicBlock node
|
|
where
|
|
bbIDominates(dominator, node)
|
|
and dominator.getNode(0).getControlFlowScope() = func
|
|
select
|
|
func.getName(),
|
|
dominator.getNode(0).getLocation().getStartLine(), dominator.getNode(0).toString(),
|
|
node.getNode(0).getLocation().getStartLine(), node.getNode(0).toString()
|
|
|
|
|