blob: b928bac63832b4ef436bfc48f46924a96f6cfdde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
** \file callgraph/libcallgraph.hh
** \brief Declare functions and variables exported by callgraph module.
*/
#pragma once
#include <ast/fwd.hh>
#include <callgraph/fundec-graph.hh>
/// Computing static link related information.
namespace callgraph
{
#ifdef SWIG
%newobject callgraph_compute;
#endif
/// Build the callgraph.
const CallGraph* callgraph_compute(const ast::Ast& tree);
CallGraph* callgraph_compute(ast::Ast& tree);
#ifdef SWIG
%newobject parentgraph_compute;
#endif
/// Build the parentgraph.
ParentGraph* parentgraph_compute(ast::Ast& tree);
} // namespace callgraph
|