[cfe-dev] Filtering output of ASTPrinter
Douglas Gregor
dgregor at apple.com
Wed May 18 14:02:35 PDT 2011
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
More information about the cfe-dev
mailing list