[cfe-dev] Access to Preprocessor macros

Daniel Dunbar daniel at zuster.org
Thu Aug 19 09:11:05 PDT 2010


You can get the Preprocessor object from the CompilerInstance available to
the plugin, and make it available to your ASTConsumer instance.

See the Preprocessor class for more information on its APIs. Be forewarned
that it's APIs aren't really targeted at higher level clients.

 - Daniel

On Wed, Aug 18, 2010 at 10:44 AM, Murat B <murat8307 at yahoo.com> wrote:

> Dear all,
>
> I created a clang plugin which is a class derived from ASTConsumer class. I
> use that plugin to move functions between files.
> I would like to ask if there is a way to access preprocessor macros and
> includes at this AST level.
>
> Thanks in advance.
> Murat
>
>
> _______________________________________________
> 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/20100819/bd1ff155/attachment.html>


More information about the cfe-dev mailing list