[Lldb-commits] [lldb] [lldb/API] Add setters to SBStructuredData (PR #154445)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 20 12:31:47 PDT 2025


================
@@ -109,6 +109,22 @@ class SBStructuredData {
   /// Return the generic pointer if this data structure is a generic type.
   lldb::SBScriptObject GetGenericValue() const;
 
+  void SetValueForKey(const char *key, SBStructuredData &value) const;
----------------
medismailben wrote:

> Is that asymmetry desirable? If I say "add value for key" to an SBStructuredData that held an Integer, why don't you convert it to a dict and add this value?

@jimingham  how would that work ? To what key would you assign the previous value the was in the structured data ?

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


More information about the lldb-commits mailing list