ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InsertPragma Class Reference

#include <InsertPragma.h>

Inheritance diagram for InsertPragma:
Collaboration diagram for InsertPragma:

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 SuccessorsContainerSuccessorsContainerRef
 
- 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 ()
 

Detailed Description

This class inserts the pragma declaration around one statement, identified with a global index.

Definition at line 17 of file InsertPragma.h.

Member Function Documentation

virtual void InsertPragma::visit ( SgNode astNode)
virtual

this method is called at every traversed node.

Implements AstSimpleProcessing.

void InsertPragma::set_statement ( int  n)
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 
)

Member Data Documentation

int InsertPragma::no_statement
private

Definition at line 31 of file InsertPragma.h.

Referenced by set_statement().


The documentation for this class was generated from the following file: