[Lldb-commits] [lldb] [lldb] Add enum lookup to DIL (PR #192065)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 17 02:33:59 PDT 2026


================
@@ -380,6 +380,31 @@ lldb::ValueObjectSP LookupIdentifier(llvm::StringRef name_ref,
   return nullptr;
 }
 
+lldb::ValueObjectSP LookupEnumValue(llvm::StringRef name_ref,
+                                    std::shared_ptr<StackFrame> stack_frame) {
+  if (name_ref.contains("::")) {
----------------
Michael137 wrote:

Could you elaborate on why we need a `::`? We only support looking up explicitly qualified enum constants I guess?

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


More information about the lldb-commits mailing list