|
ROSE
0.9.6a
|
#include <InsertPragma.h>


Public Member Functions | |
| virtual void | visit (SgNode *node) |
| this method is called at every traversed node. More... | |
| void | set_statement (int n) |
| void | createFunctionDeclaration (SgGlobal *global, list< SgNode * > var_list, SgFunctionDeclaration *&printf_func, SgFunctionDeclaration *&fopen_func, SgFunctionDeclaration *&fclose_func) |
| void | createFunctionCallprintf (SgGlobal *&root, SgFunctionDeclaration *printf_func, list< SgNode * > var_list, SgExprStatement *&func_expr) |
| void | createFunctionCallfopen (SgGlobal *&root, SgFunctionDeclaration *fopen_func, SgExprStatement *&func_expr) |
| void | createFunctionCallfclose (SgGlobal *&root, SgFunctionDeclaration *fclose_func, SgExprStatement *&func_expr) |
Private Attributes | |
| int | no_statement |
Additional Inherited Members | |
Public Types inherited from AstSimpleProcessing | |
| typedef t_traverseOrder | Order |
Protected Types inherited from SgTreeTraversal< DummyAttribute, DummyAttribute > | |
| typedef AstSuccessorsSelectors::SuccessorsContainer | SuccessorsContainer |
| typedef SuccessorsContainer & | SuccessorsContainerRef |
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 () |
This class inserts the pragma declaration around one statement, identified with a global index.
Definition at line 17 of file InsertPragma.h.
|
virtual |
this method is called at every traversed node.
Implements AstSimpleProcessing.
|
inline |
Definition at line 21 of file InsertPragma.h.
References no_statement.
| void InsertPragma::createFunctionDeclaration | ( | SgGlobal * | global, |
| list< SgNode * > | var_list, | ||
| SgFunctionDeclaration *& | printf_func, | ||
| SgFunctionDeclaration *& | fopen_func, | ||
| SgFunctionDeclaration *& | fclose_func | ||
| ) |
| void InsertPragma::createFunctionCallprintf | ( | SgGlobal *& | root, |
| SgFunctionDeclaration * | printf_func, | ||
| list< SgNode * > | var_list, | ||
| SgExprStatement *& | func_expr | ||
| ) |
| void InsertPragma::createFunctionCallfopen | ( | SgGlobal *& | root, |
| SgFunctionDeclaration * | fopen_func, | ||
| SgExprStatement *& | func_expr | ||
| ) |
| void InsertPragma::createFunctionCallfclose | ( | SgGlobal *& | root, |
| SgFunctionDeclaration * | fclose_func, | ||
| SgExprStatement *& | func_expr | ||
| ) |
|
private |
Definition at line 31 of file InsertPragma.h.
Referenced by set_statement().