|
ROSE 0.11.145.354
|
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. | |
| SgIncidenceDirectedGraph * | getGraph () |
| Grab the call graph built. | |
| boost::unordered_map< SgFunctionDeclaration *, SgGraphNode * > & | getGraphNodesMapping () |
| SgGraphNode * | hasGraphNodeFor (SgFunctionDeclaration *fdecl) const |
| Retrieve the node matching a function declaration using firstNondefiningDeclaration (does not work across translation units) | |
| SgGraphNode * | getGraphNodeFor (SgFunctionDeclaration *fdecl) const |
| Retrieve the node matching a function declaration (using mangled name to resolve across translation units) | |
| using CallGraphBuilder::GraphNodes = boost::unordered_map<SgFunctionDeclaration*, SgGraphNode*> |
Definition at line 140 of file CallGraph.h.
| void CallGraphBuilder::buildCallGraph | ( | Predicate | pred | ) |
Builder accepting user defined predicate to filter certain functions.
Definition at line 179 of file CallGraph.h.
References SgIncidenceDirectedGraph::addDirectedEdge(), SgGraph::addNode(), SgFunctionDeclaration::class_name(), SgDeclarationStatement::get_firstNondefiningDeclaration(), getGraphNodeFor(), hasGraphNodeFor(), and Rose::Diagnostics::mlog.
|
inline |
Definition at line 152 of file CallGraph.h.