[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 4 17:58:47 PDT 2024


================
@@ -112,8 +113,46 @@ void CommandReturnObject::SetError(Status error) {
 }
 
 void CommandReturnObject::SetError(llvm::Error error) {
-  if (error)
+  // Retrieve any diagnostics.
+  error = llvm::handleErrors(std::move(error), [&](ExpressionErrorBase &error) {
----------------
adrian-prantl wrote:

I renamed it to DiagnosticError and moved it to Utility.

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


More information about the lldb-commits mailing list