[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:11:39 PDT 2025
================
@@ -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:
> why can't we do that? Is there some PDB limitation?
We could do that. It would probably replicate the [`TypeQuery` constructor](https://github.com/llvm/llvm-project/blob/9ad7edef4276207ca4cefa6b39d11145f4145a72/lldb/source/Symbol/Type.cpp#L68-L85), though (which arguably isn't that large).
https://github.com/llvm/llvm-project/pull/149876
More information about the lldb-commits
mailing list