<div dir="ltr">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.<div><br></div><div>Nikola</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Jul 4, 2014 at 10:14 PM, Reed Mangino <span dir="ltr"><<a href="mailto:reed@themanginos.com" target="_blank">reed@themanginos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div style="margin:0px"><div style="margin:0px">Hi,</div><div style="margin:0px"> </div><div 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 style="margin:0px"> </div><div 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 style="margin:0px"> </div><div style="margin:0px">Thank you in advance!</div></div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>