[Lldb-commits] [lldb] [LLDB][NativePDB] Allow type lookup in namespaces (PR #149876)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 23 05:07:12 PDT 2025
================
@@ -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 &&
----------------
Nerixyz wrote:
Looks like `CompilerContextKind` is an `enum class`, so it's not convertible to `bool`. So the shortest expression would be `(ctx.kind & CompilerContextKind::Namespace) != CompilerContextKind()` - is that better than the current one?
https://github.com/llvm/llvm-project/pull/149876
More information about the lldb-commits
mailing list