Module PrintAST

Import path

semmle.code.cpp.PrintAST

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates

Classes

ASTNode

A node representing an AST node.

ArrayAggregateLiteralNode

A node representing an ArrayAggregateLiteral.

CastNode

A node representing a Cast.

ClassAggregateLiteralNode

A node representing an ClassAggregateLiteral.

ConstructorInitializersNode

A node representing the initializer list of a Constructor.

ConversionNode

A node representing a Conversion.

DeclStmtNode

A node representing a DeclStmt.

DeclarationEntryNode

A node representing a DeclarationEntry.

DestructorDestructionsNode

A node representing the destruction list of a Destructor.

ExprNode

A node representing an Expr.

FunctionNode

A node representing a Function.

InitializerNode

A node representing an Initializer.

ParameterNode

A node representing a Parameter.

ParametersNode

A node representing the parameters of a Function.

PrintASTConfiguration

The query can extend this class to control which functions are printed.

PrintASTNode

A node in the output tree.

StmtNode

A node representing a Stmt.

StringLiteralNode

A node representing a StringLiteral.

VariableDeclarationEntryNode

A node representing a VariableDeclarationEntry.