[cfe-users] Rewriting non-library files

Murali Krishna Ramanathan via cfe-users cfe-users at lists.llvm.org
Wed Mar 14 12:51:16 PDT 2018


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.

a) Is there a way to restrict the AST walk to just non-library files?
b) Since the above option is likely not possible, is it possible to
restrict the rewriting to non-library files?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180314/2384e110/attachment.html>

More information about the cfe-users mailing list