That'll work nicely. Thanks!<br><br><br>Gabriel<br><br><div class="gmail_quote">On Thu, Mar 17, 2011 at 10:20, Hendrik vP <span dir="ltr"><<a href="mailto:variadic.template@googlemail.com">variadic.template@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>You can derive of the PPCallbacks-class and overwrite the InclusionDirective- or FileChanged-method to get informed about inclusions.<br>
</div><div>Then, add an instance of your class per addPPCallbacks to your preprocessor.</div>
<div><br></div><div>Hendrik</div><br><div class="gmail_quote"><div><div></div><div class="h5">2011/3/17 Gabriel Martinez <span dir="ltr"><<a href="mailto:mystal@vt.edu" target="_blank">mystal@vt.edu</a>></span><br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I am working on a source-to-source translator plugin for clang. Currently, I rewrite both the main file and some included files to new files in the process. Given this, I wanted to automatically rewrite the includes of rewritten header files.<br>


<br>In the RewriteObjC class something similar is done where they rewrite #imports to #includes. Theeir method of locating the imports is by manually traversing the buffer character by character, which works fine but in my case would be more complex. Therefore, I was wondering if there is any portion of clang or llvm that may aid me in locating the includes?<br>


<br><br>Thanks,<br><font color="#888888">Gabriel<br>
</font><br></div></div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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>
</blockquote></div><br>