[cfe-dev] Rewriting AST through Clang's LibTooling APIs

Koustubha Bhat via cfe-dev cfe-dev at lists.llvm.org
Wed Jun 13 13:30:04 PDT 2018

Hi All,

I am exploring the LibTooling APIs to parse and perform targeted modifications to the AST.
I see that Rewriter interface allows to insert or replace text, however the writing remains in terms of text. 
May I know if rewriting the AST itself by means of inserting or modifying AST nodes, is supported?

Thank you.


More information about the cfe-dev mailing list