Stop finding bare symbols when we're explicitly
told to look in a namespace.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@150590 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 7f2d9fc..4e52d8f 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2611,12 +2611,13 @@
         
         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 @@
             }
             else
             {
+                const bool include_symbols = true;
+                
                 target->GetImages().FindFunctions(name,
                                                   eFunctionNameTypeBase,
                                                   include_symbols,