Good Evening!

I'm playing a little with Clang and I'm trying to do a sort of
interprocedural def-use analysis in the clang AST and I need to visit
the body of functions not defined in the current file.

I've been searching a way to do that and I see there is something to
do with Libtooling, but I can't figure out how. I see there is a
function in ClangTool called BuildASTs, but for that I need to
instantiate a CommomOptionsParser with the command line arguments,
which I don't have in the CodeGen file I'm working.

Can someone give me a light on how I can build the ASTs with the
funciton definitions and get this definition from the ASTs?

Thanks!

-- 
Lauro Cruz e Souza

Computer Engineering BSc- 2014
State University of Campinas (UNICAMP)

+55 19 99857-6981
Facebook: lcruzsouza | Github: laurocruz
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to