[cfe-dev] clang-cc -ast-print-xml errors

Daniel Dunbar daniel at zuster.org
Fri Sep 18 15:08:32 PDT 2009

On Fri, Sep 18, 2009 at 9:22 AM, Craig Mortensen <mortay at apple.com> wrote:
> Hi Daniel,
> I tried:
> clang -S -Xclang -ast-print-xml -x objective-c
> /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h  -o
> /tmp/output.xml
> ...and it gives me the same assertion in DocumentXML.cpp line 51.
> I tried your suggestions with empty.c and I was able to get that working on
> a empty.c file.  I think using '-x objective-c' is the culprit.

The assertion is an unrelated problem, I was just indicating the way
to get the driver to run -ast-print-xml for you, instead of having to
manufacture clang-cc arguments yourself.

 - Daniel

More information about the cfe-dev mailing list