<div dir="ltr">You can take a look at how clang-tidy does it:<div>tools-extra/clang-tidy/ClangTidy.cpp<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:30 AM, Wilhelm <span dir="ltr"><<a href="mailto:wilhelm.meier@fh-kl.de" target="_blank">wilhelm.meier@fh-kl.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi James,<br>
<br>
Am 21.07.2014 um 20:11 schrieb James Dennett:<br>
<div class="">> On Mon, Jul 21, 2014 at 9:18 AM, Wilhelm <<a href="mailto:wilhelm.meier@fh-kl.de">wilhelm.meier@fh-kl.de</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I managed to write an RecursiveASTVisitor<> with libtooling.<br>
>><br>
>> Now I want to get the list of header files included to form the actual<br>
>> translation unit. I googled for a while now, but got no idea how to<br>
>> retrieve this information.<br>
>><br>
>> Any help?<br>
><br>
> One approach/starting point: If you provide an implementation of<br>
> PPCallbacks you can override FileChanged.<br>
<br>
</div>thank you for this advice.<br>
<br>
I'm using clang::ClangTool to run an ASTFrontendAction over the source<br>
files. I looked around, but I have no idea how to set the PPCallbacks to<br>
the Preprocessor.<br>
<div class="im HOEnZb"><br>
Any help?<br>
<br>
--<br>
Wilhelm<br>
<a href="mailto:w.meier@unix.net">w.meier@unix.net</a><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>