Skip to content

AstPrePostOrderTraversal

Synopsis

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

class AstPrePostOrderTraversal
    : public PrePostOrderTraversal<SgNode*>

Base Classes

Name Description
PrePostOrderTraversal<SgNode*>

Protected Member Functions

Name
setChildrenContainer
virtual void setChildrenContainer( SgNode* node, std::vector<SgNode*>& c); [virtual]

Derived Classes

Name Description
AstCycleTest AstCycleTest is based on the successor information of SgNodes (the same information that is used by the traversals). It tests such that it allows a preorder traversal to revisit nodes but reports an error if the traversal would run into a cycle. If a cycle is found it reports the list of SgNodes that are part of the cycle to stdout, starting with "CYCLE FOUND: ..." and stops testing. Usage: AstCycleTest t; t.traverse(SgNode* n); // where n is the root node of the subtree to be tested.

Created with MrDocs