[Lldb-commits] [PATCH] D134846: [NFC] Add header documentation to the SBError::GetCString() to clarify ownwership of the returned string.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 29 10:54:40 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb3a0bed5fb87: [NFC] Add header documentation to the SBError::GetCString() to clarify… (authored by clayborg).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134846/new/

https://reviews.llvm.org/D134846

Files:
  lldb/include/lldb/API/SBError.h


Index: lldb/include/lldb/API/SBError.h
===================================================================
--- lldb/include/lldb/API/SBError.h
+++ lldb/include/lldb/API/SBError.h
@@ -27,6 +27,10 @@
 
   const SBError &operator=(const lldb::SBError &rhs);
 
+  /// Get the error string as a NULL terminated UTF8 c-string.
+  ///
+  /// This SBError object owns the returned string and this object must be kept
+  /// around long enough to use the returned string.
   const char *GetCString() const;
 
   void Clear();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134846.463966.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220929/9cfdbd1c/attachment.bin>


More information about the lldb-commits mailing list