[cfe-dev] XML AST dump: Obj-C class, method and informal_protocol missing
Douglas Gregor
dgregor at apple.com
Thu Oct 1 15:40:42 PDT 2009
On Oct 1, 2009, at 3:13 PM, Craig Mortensen wrote:
> When using clang-cc to output the AST tree for a given objective-c
> header, an xml file was produced without the objective-c class,
> methods or informal protocol declarations.
>
> How can this information be included? I'm using the "-x=objective-
> c" option and it does parse the objective-c header OK.
>
> I'm using this command:
> /Developer/usr/libexec/clang-cc -ast-print-xml --mcpu=yonah -v -o /
> tmp/outputCraig.xml -x=objective-c Craig.h
The XML dump doesn't cover all of the Clang AST, and has no support
for Objective-C. You could add the appropriate definitions into
include/clang/Frontend/DeclXML.def to get XML output for Objective-C
declarations.
- Doug
More information about the cfe-dev
mailing list