[cfe-dev] -ast-print not printing scope resolution operator

Bin Tzeng bintzeng at gmail.com
Thu Jun 20 10:43:24 PDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130620/fe45c957/attachment.html>


More information about the cfe-dev mailing list