[cfe-dev] A Clang plugin which iterates over macro declarations

Nikola Smiljanic popizdeh at gmail.com
Fri Jul 4 05:46:49 PDT 2014


Have a look at PPCallbacks class, sorry I can't be of more help, but
searching the list for "preprocessor callbacks" might give you something.

Nikola


On Fri, Jul 4, 2014 at 10:14 PM, Reed Mangino <reed at themanginos.com> wrote:

> Hi,
>
> I know how to write a function pass in LLVM to iterate over function
> decls. I'd like to do something similiar using Clang for C/C++/ObjC macros
> (#define foo).
>
> I haven't been able to find anything in the docs which describes how to
> hook into Clang's preprocessing phase. Did I just miss it? Are there any
> samples which demonstrate this?
>
> Thank you in advance!
>
> _______________________________________________
> 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/20140704/30189d4c/attachment.html>


More information about the cfe-dev mailing list