CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Module Make::ViewCfgQuery

Provides an implementation for a View CFG query.

Import this module into a .ql that looks like

@name Print CFG
@description Produces a representation of a file's Control Flow Graph.
             This query is used by the VS Code extension.
@id <lang>/print-cfg
@kind graph
@tags ide-contextual-queries/print-cfg

Import path

import codeql.controlflow.Cfg

Imports

TestOutput<ViewCfgQuery::RelevantNode>

Import this module into a .ql file of @kind graph to render a CFG. The graph is restricted to nodes from RelevantNode.

Parameters