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

via lldb-commits lldb-commits at lists.llvm.org
Thu May 2 21:11:05 PDT 2024


================
@@ -290,6 +290,36 @@ class StructuredData {
 
     void GetDescription(lldb_private::Stream &s) const override;
 
+    /// Creates an Array of substrings by splitting a string around the
+    /// occurrences of a separator character.
+    ///
+    /// Note:
+    /// * This is almost the same API and implementation as `StringRef::split`.
+    /// * Not depending on `StringRef::split` because it will involve a
+    ///   temporary `SmallVectorImpl`.
----------------
royitaqi wrote:

Updated the implementation to call `StringRef::split` with a `SmallVector`, then move the substrings into the to-be-returned array.

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


More information about the lldb-commits mailing list