summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangASTSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r--lldb/source/Expression/ClangASTSource.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp
index d91f2f1069e..a229a4a7f45 100644
--- a/lldb/source/Expression/ClangASTSource.cpp
+++ b/lldb/source/Expression/ClangASTSource.cpp
@@ -266,3 +266,18 @@ NameSearchContext::AddTypeDecl(void *type)
}
return NULL;
}
+
+void
+NameSearchContext::AddLookupResult (clang::DeclContextLookupConstResult result)
+{
+ for (clang::NamedDecl * const *decl_iterator = result.first;
+ decl_iterator != result.second;
+ ++decl_iterator)
+ m_decls.push_back (*decl_iterator);
+}
+
+void
+NameSearchContext::AddNamedDecl (clang::NamedDecl *decl)
+{
+ m_decls.push_back (decl);
+}
OpenPOWER on IntegriCloud