diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-09-27 16:09:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 16:09:52 -0700 |
commit | 84fdfb9ca63ee4304b486d7e85545ee4e1a46f5d (patch) | |
tree | 286e36dc02f9d125c8456a77126644626e60ea2d /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | c2af9af73d56d0ae89cc26d0064b7657a30359a7 (diff) | |
download | llvm-84fdfb9ca63ee4304b486d7e85545ee4e1a46f5d.zip llvm-84fdfb9ca63ee4304b486d7e85545ee4e1a46f5d.tar.gz llvm-84fdfb9ca63ee4304b486d7e85545ee4e1a46f5d.tar.bz2 |
[lldb] Store expression evaluator diagnostics in an llvm::Error (NFC) (#106442)
…NFC]
This patch is the first patch in a series reworking of Pete Lawrence's
(@PortalPete) amazing proposal for better expression evaluator error
messages (https://github.com/llvm/llvm-project/pull/80938)
This patch is preparatory patch for improving the rendering of
expression evaluator diagnostics. Currently diagnostics are rendered
into a string and the command interpreter layer then textually parses
words like "error:" to (sometimes) color the output accordingly. In
order to enable user interfaces to do better with diagnostics, we need
to store them in a machine-readable fromat. This patch does this by
adding a new llvm::Error kind wrapping a DiagnosticDetail struct that
is used when the error type is eErrorTypeExpression. Multiple
diagnostics are modeled using llvm::ErrorList.
Right now the extra information is not used by the CommandInterpreter,
this will be added in a follow-up patch!
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions