[all-commits] [llvm/llvm-project] d9cc37: [lldb] Expose structured errors in SBError (#120784)

Adrian Prantl via All-commits all-commits at lists.llvm.org
Fri Dec 20 13:03:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9cc37fea7b02954079ca59e8f7f28cffacc7e9e
      https://github.com/llvm/llvm-project/commit/d9cc37fea7b02954079ca59e8f7f28cffacc7e9e
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2024-12-20 (Fri, 20 Dec 2024)

  Changed paths:
    M lldb/include/lldb/API/SBError.h
    M lldb/include/lldb/API/SBStructuredData.h
    M lldb/include/lldb/Utility/DiagnosticsRendering.h
    M lldb/include/lldb/Utility/Status.h
    M lldb/source/API/SBError.cpp
    M lldb/source/Interpreter/CommandReturnObject.cpp
    M lldb/source/Utility/DiagnosticsRendering.cpp
    M lldb/source/Utility/Status.cpp
    M lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
    M lldb/test/API/commands/frame/var/TestFrameVar.py

  Log Message:
  -----------
  [lldb] Expose structured errors in SBError (#120784)

Building on top of previous work that exposed expression diagnostics via
SBCommandReturnObject, this patch generalizes the support to expose any
SBError as machine-readable structured data. One use-case of this is to
allow IDEs to better visualize expression diagnostics.

rdar://139997604



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list