[cfe-users] how to clang Replacements
Valerio via cfe-users
cfe-users at lists.llvm.org
Thu Oct 26 02:20:03 PDT 2017
I am working on a tool allowing to modify C++ source code (refactoring). I
read in  that RefactoringTools is not the best choice in terms of
performance, my codebase is quite huge. So I ended up with an
implementation leveraging on clang Replacements, w/o RefactoringTools.
I have read code in  to figure out how to use such Replacements in
ClangTool but I didn't get so much.
Could anyone point me out an example of how to use Replacements to
rewrite/insert code (i.e., adding an include line at the beginning) without
leveraging on RefactoringTool? I posted my demo code here 
thank you and happy hacking!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users