[cfe-users] Rewriting non-library files

2018-03-14 Thread Murali Krishna Ramanathan via cfe-users
Hi, I am using the RecursiveASTVisitor to walk the AST and rewrite code automatically using Rewriter for Objective-C programs. Walking the AST results in analyzing the ASTs of the library files and rewriting logic which is embedded within the visit methods can potentially affect the library files.

[cfe-users] Getting function body from AST for interprocedural analysis

2018-03-14 Thread Lauro Cruz via cfe-users
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