Skip to content

AstSimpleProcessing

Class for traversing the AST.

Synopsis

Declared in <src/midend/astProcessing/AstSimpleProcessing.h>

class [[visibility("default")]] AstSimpleProcessing
    : public SgTreeTraversal<DummyAttribute, DummyAttribute>

Base Classes

Name Description
SgTreeTraversal<DummyAttribute, DummyAttribute>

Type Aliases

Name
Order

Member Functions

Name Description
traverse
void traverse( SgNode* node, Order treeTraversalOrder);
traverse the entire AST. Order defines preorder (preorder) or postorder (postorder) traversal. Default is 'preorder'.
traverseInputFiles
void traverseInputFiles( SgProject* projectNode, Order treeTraversalOrder);
traverse only nodes which represent files which were specified on the command line (=input files).
traverseWithinFile
void traverseWithinFile( SgNode* node, Order treeTraversalOrder);
traverse only nodes which represent the same file as where the traversal was started

Protected Member Functions

Name Description
atTraversalEnd
virtual void atTraversalEnd(); [virtual]
atTraversalStart
virtual void atTraversalStart(); [virtual]
GB (06/04/2007): A new virtual function called at the start of the traversal, before any node is actually visited; can be used to perform a "last-minute" computation of attributes that may have changed since the constructor was executed, but are constant during the traversal itself. A no-op by default.
visit
virtual void visit(SgNode* astNode) = 0; [virtual]
this method is called at every traversed node.

Private Member Functions

Name
defaultSynthesizedAttribute
virtual DummyAttribute defaultSynthesizedAttribute(DummyAttribute inheritedValue); [virtual]
evaluateInheritedAttribute
virtual DummyAttribute evaluateInheritedAttribute( SgNode* astNode, DummyAttribute inheritedValue); [virtual]
evaluateSynthesizedAttribute
virtual DummyAttribute evaluateSynthesizedAttribute( SgNode* astNode, DummyAttribute inheritedValue, SynthesizedAttributesList l); [virtual]

Friends

Name Description
AstCombinedSimpleProcessing

Derived Classes

Name Description
AstCombinedSimpleProcessing
AstReverseBranchSimpleProcessing
AstReversePrefixSimpleProcessing
IncludedFilesUnparser
IncludingPreprocessingInfosCollector
OutputLocalSymbolTables
SgSimpleProcessing
SingleStatementToBlockNormalizer
SlicingInfo
TestAstAccessToDeclarations
TestAstForProperlyMangledNames
TestAstForProperlySetDefiningAndNondefiningDeclarations
TestAstForUniqueNodesInAST
TestAstForUniqueStatementsInScopes
TestAstSymbolTables
TestAstTemplateProperties
TestExpressionTypes
TestForMultipleWaysToSpecifyRestrictKeyword
TestForSourcePosition
TestLValueExpressions

Created with MrDocs