<div dir="ltr">Greetings,<br><br>I'm working on a src-2-src transformer, and I want it to be as modular as possible.<br>Currently I'm doing the transformations by invoking Rewriter from within ASTConsumer methods.<br>

What I want is to have methods like: setFuncName, insertTextAfterCall etc, which will be separated from the parsing process, and could be invoked independantly. The problem is that all the data generated during the parsing (Decl, Stmt, SourceLocation) is deleted after the parsing ends.<br>

<br>Is there a better way but doing a deep copy of the required data during the parsing?<br><br><br>Thanks,<br>Ilya<br><br><br>-- <br><div dir="ltr">Best Regards,<br>Ilya Mirsky<br><a href="http://www.cs.bgu.ac.il/%7Emirskyil" target="_blank">www.cs.bgu.ac.il/~mirskyil</a><br>

</div><br>
</div>