FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/cpp/ql/lib/semmle/code/cpp/PrintAST.ql at codeql-cli/v2.27.1 · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
493
(493)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
cpp
/
ql
/
lib
/
semmle
/
code
/
cpp
/
PrintAST.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (19 loc) · 480 Bytes
Breadcrumbs
codeql
/
cpp
/
ql
/
lib
/
semmle
/
code
/
cpp
/
PrintAST.ql
Copy path
File metadata and controls
21 lines (19 loc) · 480 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @name Print AST
* @description Outputs a representation of the Abstract Syntax Tree.
* @id cpp/print-ast
* @kind graph
*/
import
cpp
import
PrintAST
/**
* Temporarily tweak this class or make a copy to control which declarations are
* printed.
*/
class
Cfg
extends
PrintAstConfiguration
{
/**
* TWEAK THIS PREDICATE AS NEEDED.
* Holds if the AST for `decl` should be printed.
*/
override
predicate
shouldPrintDeclaration
(
Declaration
decl
)
{
any
(
)
}
}
Back
|
FazBrowse Home
|
New Git URL