[cfe-dev] how to use AST Consumer to modify loops in source code?

jignesh vasoya jigneshvasoya at gmail.com
Sat Jan 15 09:52:08 PST 2011


Hi,
i want to change all the loops in the source code.
how can i do it with ASTConsumer class?

i want to visit each loop and after making some changes to its body and
declaration i want to write it back to the AST.
if writing back to AST is not possible using plugin method for clang than at
least i want to extract each loop in the source code.

i have gone through the plugin code given in the  clang/examples.........

-- 
*___________________________________________________________________________
*
-----------------------------------------------------------------------------------------------------------------------------
*Jignesh Vasoya
CSE - IIT MADRAS
9962248684*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110115/9af30692/attachment.html>


More information about the cfe-dev mailing list