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

AlexDenisov 1101.debian at gmail.com
Fri Jul 4 05:44:56 PDT 2014


Hi, Reed.
You may try to use libclang[1] for this purpose. 

[1] http://clang.llvm.org/doxygen/group__CINDEX.html
-- 
Alex Denisov

https://github.com/AlexDenisov
Software Engineer at http://railsware.com/

On July 4, 2014 at 15:18:28, 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/9df63bb3/attachment.html>


More information about the cfe-dev mailing list