Class AstSimpleProcessing#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class AstSimpleProcessing : public SgTreeTraversal<DummyAttribute, DummyAttribute>#

Subclassed by AstCombinedSimpleProcessing, AstReverseBranchSimpleProcessing, AstReversePrefixSimpleProcessing, BuildListOfConnectedNodesInAST, DummyTestQuery1, FixupAstSymbolTables, FixupAstSymbolTablesToSupportAliasedSymbols, FixupFortranReferences, FixupFortranUseDeclarations, FixupFunctionDefinitions, FixupNullPointersInAST, FixupSelfReferentialMacrosInAST, FixupTemplateDeclarations, Graph_TokenMappingTraversal, IncludedFilesUnparser, IncludingPreprocessingInfosCollector, InsertFortranContainsStatement, OmpSupport::SgVarRefExpVisitor, OmpSupport::translationDriver, ProcessTemplateHandlingOptions, SageInterface::OutputLocalSymbolTables, SgSimpleProcessing, SingleStatementToBlockNormalizer, SlicingInfo, TestAstAccessToDeclarations, TestAstCompilerGeneratedNodes, TestAstForProperlyMangledNames, TestAstForProperlySetDefiningAndNondefiningDeclarations, TestAstForUniqueNodesInAST, TestAstForUniqueStatementsInScopes, TestAstSymbolTables, TestAstTemplateProperties, TestExpressionTypes, TestForMultipleWaysToSpecifyRestrictKeyword, TestForSourcePosition, TestLValueExpressions, TestLValues, WalrusGraph::Counter, WalrusGraph::OutputEdges, WalrusGraph::OutputNodes, sg::TraversalClass< GVisitor >

Public Types

typedef t_traverseOrder Order#

Public Functions

void traverse(SgNode *node, Order treeTraversalOrder)#

traverse the entire AST. Order defines preorder (preorder) or postorder (postorder) traversal. Default is ‘preorder’.

void traverseWithinFile(SgNode *node, Order treeTraversalOrder)#

traverse only nodes which represent the same file as where the traversal was started

void traverseInputFiles(SgProject *projectNode, Order treeTraversalOrder)#

traverse only nodes which represent files which were specified on the command line (=input files).

Protected Functions

virtual void visit(SgNode *astNode) = 0#

this method is called at every traversed node.

virtual void atTraversalStart()#

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.

virtual void atTraversalEnd()#

Friends

friend class AstCombinedSimpleProcessing