Functions

risc::traverser Namespace Reference

Functions

bool is_sc_main (const SgFunctionDeclaration *function)
 Checks if function is sc_main functions.
SgFunctionDeclaration * find_sc_main (SgNode *node)
 searchs for sc_main function
std::vector< SgClassDefinition * > find_all_modules ()
 Search for all class definitions.
bool is_defined_in_included_library (SgProject *project, SgNode *node)
 This funciton checks if the defintion of the node is in a file that is located in the given include path.

Function Documentation

std::vector< SgClassDefinition * > risc::traverser::find_all_modules (  ) 

Search for all class definitions.

Returns:
A vector with all classes that are derived from sc_module
SgFunctionDeclaration * risc::traverser::find_sc_main ( SgNode *  node  ) 

searchs for sc_main function

Returns:
Declaration of sc_main
bool risc::traverser::is_defined_in_included_library ( SgProject *  project,
SgNode *  node 
)

This funciton checks if the defintion of the node is in a file that is located in the given include path.

Parameters:
project Head node of the project
Returns:
True, if the node is located in a file in the include folder
bool risc::traverser::is_sc_main ( const SgFunctionDeclaration *  function  ) 

Checks if function is sc_main functions.

Returns:
True, if it is sc_main function
 All Classes Namespaces Files Functions Variables Typedefs