[Lldb-commits] [lldb] [lldb/API] Add setters to SBStructuredData (PR #154445)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 21 10:10:30 PDT 2025
================
@@ -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
More information about the lldb-commits
mailing list