[Lldb-commits] [lldb] r152144 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Sean Callanan scallanan at apple.com
Tue Mar 6 12:53:06 PST 2012


Author: spyffe
Date: Tue Mar  6 14:53:06 2012
New Revision: 152144

URL: http://llvm.org/viewvc/llvm-project?rev=152144&view=rev
Log:
Don't return bare symbols when asked to search
inside a namespace.  This bypasses local variables.

Modified:
    lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=152144&r1=152143&r2=152144&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Tue Mar  6 14:53:06 2012
@@ -2657,7 +2657,7 @@
                                          append,
                                          sc_list);
             }
-            else
+            else if (!namespace_decl)
             {
                 const bool include_symbols = true;
                 
@@ -2714,7 +2714,7 @@
                 }
             }
             
-            if (!context.m_found.variable)
+            if (!context.m_found.variable && !namespace_decl)
             {
                 // We couldn't find a non-symbol variable for this.  Now we'll hunt for a generic 
                 // data symbol, and -- if it is found -- treat it as a variable.





More information about the lldb-commits mailing list