<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi, Reed.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">You may try to use libclang[1] for this purpose. </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">[1] <a href="http://clang.llvm.org/doxygen/group__CINDEX.html">http://clang.llvm.org/doxygen/group__CINDEX.html</a></div> <div id="bloop_sign_1404477298865843968" class="bloop_sign"><span style="font-family:helvetica,arial;font-size:13px"></span><div style="font-family: helvetica; line-height: normal;">-- </div><div style="font-family: helvetica; line-height: normal;">Alex Denisov</div><div style="font-family: helvetica; line-height: normal;"><br></div><div style="font-family: helvetica; line-height: normal;"><a href="https://github.com/AlexDenisov">https://github.com/AlexDenisov</a></div><div style="font-family: helvetica; line-height: normal;">Software Engineer at <a href="http://railsware.com/">http://railsware.com/</a></div></div> <br><p style="color:#000;">On July 4, 2014 at 15:18:28, Reed Mangino (<a href="mailto:reed@themanginos.com">reed@themanginos.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div><div>





<title></title>



<div id="bloop_customfont" style="margin: 0px;">
<div id="bloop_customfont" style="margin: 0px;">Hi,</div>
<div id="bloop_customfont" style="margin: 0px;"> </div>
<div id="bloop_customfont" style="margin: 0px;">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).</div>
<div id="bloop_customfont" style="margin: 0px;"> </div>
<div id="bloop_customfont" style="margin: 0px;">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?</div>
<div id="bloop_customfont" style="margin: 0px;"> </div>
<div id="bloop_customfont" style="margin: 0px;">Thank you in
advance!</div>
</div>


_______________________________________________
<br>cfe-dev mailing list
<br>cfe-dev@cs.uiuc.edu
<br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
<br></div></div></span></blockquote></body></html>