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

Ilia Kuklin via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 17 06:53:21 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("::")) {
+    llvm::StringRef enum_typename, enumerator_name;
+    // FIXME: Change this to a structured binding for lambda capturing
+    // once we have C++20.
----------------
kuilpd wrote:

>From what I understand, capturing structured bindings into a lambda is technically a C++20 feature, and older compiler versions might fail to compile such code with C++17 standard.

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


More information about the lldb-commits mailing list