================
@@ -232,3 +232,46 @@ lldb::SBScriptObject SBStructuredData::GetGenericValue() 
const {
 
   return {m_impl_up->GetGenericValue(), eScriptLanguageDefault};
 }
+
+void SBStructuredData::SetValueForKey(const char *key,
+                                      SBStructuredData &value) {
+  LLDB_INSTRUMENT_VA(this, key, value);
+
+  m_impl_up->SetValueForKey(key, value.m_impl_up->GetObjectSP());
----------------
jimingham wrote:

A default constructed SBStructuredData always has a valid m_impl_up, so that 
part is okay.  But a default constructed StructuredDataImpl can have an empty 
m_data_sp.  Do we want to add an empty value, or should that be an error?

https://github.com/llvm/llvm-project/pull/154445
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to