[Lldb-commits] [lldb] [lldb] Expose structured errors in SBError (PR #120784)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 20 11:58:27 PST 2024


================
@@ -183,6 +186,9 @@ class Status {
   ///     NULL otherwise.
   const char *AsCString(const char *default_error_str = "unknown error") const;
 
+  /// Get the error in machine-readable form.
+  StructuredData::ObjectSP GetErrorData() const;
----------------
JDevlieghere wrote:

We have prior art of calling these methods `GetAsStructuredData`. Let's use that for consistency, unless there's a good reason not to. 

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


More information about the lldb-commits mailing list