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

Brad LaFountain blafountain at gmail.com
Fri Mar 5 17:47:11 PST 2010


I found an issue with the AST xml output.

Simple example:

class test {
public:
void doSomething() {
int i = 99;
}
};

clang -cc1 -ast-print-xml test.cpp

The resulting output doesn't have any reference to the implementation
doSomething()
If you implement it outside the deceleration it works fine.

class test {
public:
void doSomething();
};

void test::doSomething() {
 int i = 99;
}

You get the correct <CXXMethodDecl> tag.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100305/6a50b041/attachment.html>


More information about the cfe-dev mailing list