Implemented a namespace map that allows searching
of namespaces (only in the modules where they've
been found) for entities inside those namespaces.

For each NamespaceDecl that has been imported into
the parser, we maintain a map containing
[ModuleSP, ClangNamespaceDecl] pairs in the ASTImporter.
This map has one entry for each module in which the
namespace has been found.  When we later scan for an
entity inside a namespace, we search only the modules
in which that namespace was found.

Also made a small whitespace fix in 
ClangExpressionParser.cpp.

llvm-svn: 141748
diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp
index 4867400..3f987c6 100644
--- a/lldb/source/Symbol/ClangASTImporter.cpp
+++ b/lldb/source/Symbol/ClangASTImporter.cpp
@@ -93,6 +93,24 @@
     return;
 }
 
+void 
+ClangASTImporter::RegisterNamespaceMap(const clang::NamespaceDecl *decl, 
+                                       NamespaceMapSP &namespace_map)
+{
+    m_namespace_maps[decl] = namespace_map;
+}
+
+ClangASTImporter::NamespaceMapSP 
+ClangASTImporter::GetNamespaceMap(const clang::NamespaceDecl *decl)
+{
+    NamespaceMetaMap::iterator iter = m_namespace_maps.find(decl);
+    
+    if (iter != m_namespace_maps.end())
+        return iter->second;
+    else
+        return NamespaceMapSP();
+}
+
 clang::Decl 
 *ClangASTImporter::Minion::Imported (clang::Decl *from, clang::Decl *to)
 {