[Lldb-commits] [lldb] [lldb-dap] Refactor variablesReference storage and scope management. (PR #179262)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 13 11:36:59 PST 2026


================
@@ -466,7 +466,7 @@ struct SetVariableResponseBody {
   /// If this property is included in the response, any `variablesReference`
   /// previously associated with the updated variable, and those of its
   /// children, are no longer valid.
-  uint64_t variablesReference = 0;
+  var_ref_t variablesReference{0};
----------------
ashgti wrote:

Should we make it more obvious what 0 represents here with something like `var_ref_t::kNone` or `LLDB_DAP_VAR_REF_NONE`?

Or we could use a default constructor on var_ref_t to set it to 0/None.

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


More information about the lldb-commits mailing list