================
@@ -164,7 +166,9 @@ bool TypeQuery::ContextMatches(
   auto should_skip = [this](const CompilerContext &ctx) {
     if (ctx.kind == CompilerContextKind::Module)
       return GetIgnoreModules();
-    if (ctx.kind == CompilerContextKind::Namespace && ctx.name.IsEmpty())
+    if ((ctx.kind & CompilerContextKind::Namespace) ==
+            CompilerContextKind::Namespace &&
----------------
Michael137 wrote:

Yea but `kind & Namespace` would just return the `Namespace` bits right?
```
(AnyDeclContext) 0b1000000101101100
(NameSpace)                                   0b100
==============================
                                                          0b100
```
I.e., `AnyDeclContext & NameSpace == 4`. Which is exactly `NameSpace`

What am I missing?

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