[Lldb-commits] [lldb] Add new Python API `SBCommandInterpreter::GetTranscript()` (PR #90703)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue May 7 23:03:27 PDT 2024


================
@@ -289,3 +292,35 @@ void StructuredData::Null::GetDescription(lldb_private::Stream &s) const {
 void StructuredData::Generic::GetDescription(lldb_private::Stream &s) const {
   s.Printf("%p", m_object);
 }
+
+/// This is the same implementation as `StringRef::split`. Not depending on
+/// `StringRef::split` because it will involve a temporary `SmallVectorImpl`.
+StructuredData::ArraySP StructuredData::Array::SplitString(llvm::StringRef s,
----------------
clayborg wrote:

This whole function is a small wrapper around StringRef::split(). I am not sure this specialized method belongs in StructuredData (and I would like to not split the strings for output and error if possible).

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


More information about the lldb-commits mailing list