diff options
| author | Sean Callanan <scallanan@apple.com> | 2013-03-14 17:21:53 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2013-03-14 17:21:53 +0000 |
| commit | c4b1ab442d5b509491cf57aa97c7527db13ab195 (patch) | |
| tree | 993a457a669c2ee6f537e1d25adb3414fc2a8b2d | |
| parent | 529e239aee123eaec6d16f2949faa7d4b1db5172 (diff) | |
| download | bcm5719-llvm-c4b1ab442d5b509491cf57aa97c7527db13ab195.tar.gz bcm5719-llvm-c4b1ab442d5b509491cf57aa97c7527db13ab195.zip | |
Fixed a problem where we didn't return TypedefNameDecls
when clang asked for them by name.
llvm-svn: 177085
| -rw-r--r-- | lldb/source/Expression/ClangASTSource.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index 3b70c32d932..69d7b059e77 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -1821,6 +1821,14 @@ NameSearchContext::AddTypeDecl(void *type) return (NamedDecl*)interface_decl; } + else if (const TypedefType *typedef_type = qual_type->getAs<TypedefType>()) + { + TypedefNameDecl *typedef_name_decl = typedef_type->getDecl(); + + m_decls.push_back(typedef_name_decl); + + return (NamedDecl*)typedef_name_decl; + } } return NULL; } |

