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

Reed Mangino reed at themanginos.com
Fri Jul 4 05:14:01 PDT 2014


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140704/06e96dd7/attachment.html>


More information about the cfe-dev mailing list