[Lldb-commits] [lldb] [LLDB][NativePDB] Allow type lookup in namespaces (PR #149876)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 29 09:35:33 PDT 2025


================
@@ -72,6 +72,14 @@ struct CVTagRecord {
     return cvunion.Name;
   }
 
+  CompilerContextKind contextKind() const {
+    if (m_kind == Struct || m_kind == Class)
+      return CompilerContextKind::ClassOrStruct;
+    if (m_kind == Enum)
+      return CompilerContextKind::Enum;
+    return CompilerContextKind::Union;
----------------
Michael137 wrote:

Should we check (or assert) that the `m_kind` is in fact a union?

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


More information about the lldb-commits mailing list