[cfe-dev] libtooling: how to get the list of include files for a translation unit

James Dennett james.dennett at gmail.com
Mon Jul 21 11:11:18 PDT 2014


On Mon, Jul 21, 2014 at 9:18 AM, Wilhelm <wilhelm.meier at fh-kl.de> wrote:
> Hi all,
>
> I managed to write an RecursiveASTVisitor<> with libtooling.
>
> Now I want to get the list of header files included to form the actual
> translation unit. I googled for a while now, but got no idea how to
> retrieve this information.
>
> Any help?

One approach/starting point: If you provide an implementation of
PPCallbacks you can override FileChanged.

-- James



More information about the cfe-dev mailing list