Don't hit an assertion failure when calculating the __PRETTY_FUNCTION__
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Dec 2012 19:44:11 +0000 (19:44 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Dec 2012 19:44:11 +0000 (19:44 +0000)
commit53e3d6d7f00ce2efbd46e36685d011234f2efcb9
treea655194dd616bf1b0e96993b19493f56daaa8b5d
parenta40bcac0ef14489e0cbde6c5637598ceae3f77d8
Don't hit an assertion failure when calculating the __PRETTY_FUNCTION__
of a member function with parenthesized declarator.

Like this test case:

class Foo {
  const char *(baz)() {
    return __PRETTY_FUNCTION__;
  }
};

llvm-svn: 170233
clang/lib/AST/Expr.cpp
clang/test/CodeGenCXX/predefined-expr.cpp