mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
This implements calculation of the control-flow graph in QL. The new code is not enabled yet as we'll need more extractor changes first. The `SyntheticDestructorCalls.qll` file is a temporary solution that can be removed when the extractor produces this information directly.
12 lines
308 B
Plaintext
12 lines
308 B
Plaintext
// query-type: graph
|
|
import Compare
|
|
|
|
from
|
|
Element scopeElement,
|
|
string scopeString, boolean isEdge, ControlFlowNode x, ControlFlowNode y, string label
|
|
where
|
|
AllCFG::qltestGraph(scopeElement, scopeString, isEdge, x, y, label) and
|
|
differentScope(scopeElement)
|
|
select
|
|
scopeString, isEdge, x, y, label
|