================
@@ -134,7 +134,9 @@ bool TypeQuery::ContextMatches(
     if (ctx == ctx_end)
       return false; // Pattern too long.
 
-    if (ctx->kind == CompilerContextKind::Namespace && ctx->name.IsEmpty()) {
+    if ((ctx->kind & CompilerContextKind::Namespace) ==
----------------
Nerixyz wrote:

> How expensive is this "get the parent to handle nested structs/enums/unions" 
> operation?

This is only a lookup in a map that we created. But this only works for tag 
types, not for namespaces. My approach now uses `Type::GetTypeScopeAndBasename` 
to split the undecorated name. At first, it assumes everything is a namespace 
and then walks backwards to find parent types.

I'm not sure what the best way to test this is.

https://github.com/llvm/llvm-project/pull/149876
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to