Liberalized the "id" check a little; now "id" can
be found in namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@143096 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 9acf8c2..64a2508 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2646,15 +2646,17 @@
static ConstString id_name("id");
- if (name != id_name)
+ do
{
TypeList types;
SymbolContext null_sc;
if (module_sp && namespace_decl)
module_sp->FindTypes(null_sc, name, &namespace_decl, true, 1, types);
- else
+ else if(name != id_name)
target->GetImages().FindTypes (null_sc, name, true, 1, types);
+ else
+ break;
if (types.GetSize())
{
@@ -2675,7 +2677,7 @@
AddOneType(context, user_type, current_id, false);
}
- }
+ } while(0);
}
clang::ExternalLoadResult