Stop finding bare symbols when we're explicitly

told to look in a namespace.

llvm-svn: 150590
This commit is contained in:
Sean Callanan 2012-02-15 17:14:49 +00:00
parent 02267a8e48
commit 3ae617943b
1 changed files with 4 additions and 1 deletions

View File

@ -2611,12 +2611,13 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
if (!context.m_found.variable)
{
const bool include_symbols = true;
const bool include_inlines = false;
const bool append = false;
if (namespace_decl && module_sp)
{
const bool include_symbols = false;
module_sp->FindFunctions(name,
&namespace_decl,
eFunctionNameTypeBase,
@ -2627,6 +2628,8 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
}
else
{
const bool include_symbols = true;
target->GetImages().FindFunctions(name,
eFunctionNameTypeBase,
include_symbols,