-ast-print not printing scope resolution operator

Hi all,

I am not sure whether this is a bug or intended design. The following snippet:
class junk {
void foo(void);
};

void junk::foo(void) {}
void foo(void) {}

prints out the following ast with clang -cc1 -ast-print:

class junk {
void foo();
};
void foo() {
}

void foo() {
}

The class name and its scope resolution operator is missing in the printed ast for the first method foo. If it is indented, can anybody shed some light? Thanks!

Bin

If you see a problem with AST printing, it's probably a bug; nobody has
really put in a concerted effort to make AST printing round-trip accurately.

-Eli

Thanks for the quick reply! Is there any discussion or plan to make it accurate (I might miss them) or it is left at the bottom of priority list?

Thanks for the quick reply! Is there any discussion or plan to make it
accurate (I might miss them) or it is left at the bottom of priority list?

It's pretty low on the priority list, but we're happy to review patches.

-Eli