[Lldb-commits] [lldb] [lldb] Better matching of types in anonymous namespaces (PR #102111)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 7 10:23:41 PDT 2024


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

Do we need to check for `"(anonymous namespace)"` here? Or do we detect this elsewhere and make sure to clear the name? Demangling names will show `"(anonymous namespace)"`

https://github.com/llvm/llvm-project/pull/102111


More information about the lldb-commits mailing list