ROSE
0.9.6a
|
#include <RemovalOfNodes.h>
Protected Member Functions | |
virtual void | visit (SgNode *node) |
This visit function removes the astNode node if it does not have the AstAttribute keep. More... | |
Protected Member Functions inherited from AstSimpleProcessing | |
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. More... | |
virtual void | atTraversalEnd () |
Protected Member Functions inherited from SgTreeTraversal< DummyAttribute, DummyAttribute > | |
virtual void | setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer) |
void | set_useDefaultIndexBasedTraversal (bool) |
Private Member Functions | |
void | writeMessage (SgNode *node) |
Additional Inherited Members | |
Public Types inherited from AstSimpleProcessing | |
typedef t_traverseOrder | Order |
Public Member Functions inherited from AstSimpleProcessing | |
void | traverse (SgNode *node, Order treeTraversalOrder) |
traverse the entire AST. Order defines preorder (preorder) or postorder (postorder) traversal. Default is 'preorder'. More... | |
void | traverseWithinFile (SgNode *node, Order treeTraversalOrder) |
traverse only nodes which represent the same file as where the traversal was started More... | |
void | traverseInputFiles (SgProject *projectNode, Order treeTraversalOrder) |
traverse only nodes which represent files which were specified on the command line (=input files). More... | |
Protected Types inherited from SgTreeTraversal< DummyAttribute, DummyAttribute > | |
typedef AstSuccessorsSelectors::SuccessorsContainer | SuccessorsContainer |
typedef SuccessorsContainer & | SuccessorsContainerRef |
This class removes AST nodes which don't have the astAttribute "keep".
Definition at line 12 of file RemovalOfNodes.h.
|
protectedvirtual |
This visit function removes the astNode node if it does not have the AstAttribute keep.
Implements AstSimpleProcessing.
|
private |
This function writes a short message about what kind of AstNode is removed.