[cfe-dev] Code Refactoring

Eugene Ostroukhov eostroukhov at gmail.com
Thu Feb 7 15:31:02 PST 2013


Are you using Lex?
LexUnexpandedToken<http://clang.llvm.org/doxygen/classclang_1_1Preprocessor.html#aaaf1f5cefe79d0f9da0637c5a3d4e7dc>


On Thu, Feb 7, 2013 at 2:13 PM, madil90 <madil90 at gmail.com> wrote:

> Hi,
>    I need to do some code refactoring. I am basically trying to find all
> "#include " statements (check for duplicates and add a few of my own etc).
> I
> tried to parse the AST but I realized that the preprocessor has already
> converted these statements (to code). Is there any FrontendAction that I
> can
> invoke allowing me to detect and stop at these statements?
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Code-Refactoring-tp4030369.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130207/198f79de/attachment.html>


More information about the cfe-dev mailing list