[cfe-dev] Filtering output of ASTPrinter
Adrien Chauve
adrien.chauve at gmail.com
Thu May 19 00:35:13 PDT 2011
Thanks a lot for the hint!
Adrien
On Wed, May 18, 2011 at 23:02, Douglas Gregor <dgregor at apple.com> wrote:
>
> On May 18, 2011, at 12:09 PM, Adrien Chauve wrote:
>
> > Hi,
> >
> > I tested clang::CreateASTPrinter and it's really nice (I can't wait to
> test different pretty printer policies).
> > But I'm wondering if it's possible to print back the #include as they are
> in the source file, instead of printing the ast content of the header file.
>
> There aren't any command-line flags to do this, although you could do this
> by digging into the source locations (which include full file-inclusion
> history).
>
> - Doug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110519/87f0974e/attachment.html>
More information about the cfe-dev
mailing list