[cfe-dev] Find function relations use clang
Hao Jiang
hjian001 at fiu.edu
Tue Jan 18 13:59:22 PST 2011
Hi,
I am new to clang. I want use clang to find all the function definitions and
call relation between functions in source code of "C" language. Right now, I
can use PrintFunctionNames example to get all the function names. Which
libs(FunctionDecl? Functionphototype?) should I use to get function
parameters and return type?
Should I use ASTVistor class to traverse each function body to get all the
function calls or there are other good solutions? Any examples or hints are
appreciated Thanks.
Regards,
Hao Jiang
--
View this message in context: http://clang-developers.42468.n3.nabble.com/Find-function-relations-use-clang-tp2283248p2283248.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list