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

The anonymous namespace is detected and nullified on line 815. I'm not aware of 
such code, but if anyone was constructing these contexts without going through 
the name parser, then they'd have to make sure they use the expected (empty) 
encoding for anonymous namespaces. I think that's reasonable, because ensuring 
this when constructing the names from some kind of a structured source is easy, 
and noone should be parsing name strings by hand as the process is very 
nontrivial. They should rather call the function in this file (which will do 
the nullification for them).

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

Reply via email to