ROSE 0.11.145.229
Public Types | Public Member Functions | List of all members
CallGraphBuilder Class Reference

Description

Definition at line 137 of file CallGraph.h.

Public Types

using GraphNodes = boost::unordered_map< SgFunctionDeclaration *, SgGraphNode * >
 

Public Member Functions

 CallGraphBuilder (SgProject *proj)
 
void buildCallGraph ()
 Default builder filtering nothing in the call graph.
 
template<typename Predicate >
void buildCallGraph (Predicate pred)
 Builder accepting user defined predicate to filter certain functions.
 
SgIncidenceDirectedGraphgetGraph ()
 Grab the call graph built.
 
boost::unordered_map< SgFunctionDeclaration *, SgGraphNode * > & getGraphNodesMapping ()
 
SgGraphNodehasGraphNodeFor (SgFunctionDeclaration *fdecl) const
 Retrieve the node matching a function declaration using firstNondefiningDeclaration (does not work across translation units)
 
SgGraphNodegetGraphNodeFor (SgFunctionDeclaration *fdecl) const
 Retrieve the node matching a function declaration (using mangled name to resolve across translation units)
 

Member Typedef Documentation

◆ GraphNodes

using CallGraphBuilder::GraphNodes = boost::unordered_map<SgFunctionDeclaration*, SgGraphNode*>

Definition at line 140 of file CallGraph.h.

Member Function Documentation

◆ buildCallGraph()

template<typename Predicate >
void CallGraphBuilder::buildCallGraph ( Predicate  pred)

◆ getGraphNodesMapping()

boost::unordered_map< SgFunctionDeclaration *, SgGraphNode * > & CallGraphBuilder::getGraphNodesMapping ( )
inline

Definition at line 152 of file CallGraph.h.


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