Modified the expression parser's class wrapper to
authorSean Callanan <scallanan@apple.com>
Fri, 1 Feb 2013 06:55:48 +0000 (06:55 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 1 Feb 2013 06:55:48 +0000 (06:55 +0000)
commitfa4fab77d40c49747372c9d4c397f71e370c431e
tree2fc8423bb4df36677a388fb3946f5b40c29b447f
parent1d584029aea9c458c8772b6bbaf3acdc10cbe702
Modified the expression parser's class wrapper to
support reporting "this" as a templated class.  The
expression parser wraps expressions in C++ methods
as methods with the signature

$__lldb_class::$__lldb_expr(...)

and previously responded to clang's queries about
$__lldb_class with the type of *this.  This didn't
work if *this was a ClassTemplateSpecializationDecl
because ClassTemplateSpecializationDecls can't be
the result of simple name queries.

Instead what we do now is respond that $__lldb_class
is a typedef and that the target of the typedef is
the (potentially templated) type of *this.  That is
much more robust.

Thanks to John McCall for key insights.

<rdar://problem/10987183>

llvm-svn: 174153
lldb/include/lldb/Expression/ClangExpressionDeclMap.h
lldb/source/Expression/ClangExpressionDeclMap.cpp
lldb/source/Symbol/ClangASTContext.cpp
lldb/test/lang/cpp/this/main.cpp