This is an archive of the discontinued LLVM Phabricator instance.

Also display the underlying error message when displaying a fixit
ClosedPublic

Authored by aprantl on Apr 26 2021, 4:49 PM.

Details

Summary

When the user running LLDB with default settings sees the fixit notification it means that the auto-applied fixit didn't work. This patch shows the underlying error message instead of just the fixit to make it easier to understand what the error in the expression was.

Diff Detail

Event Timeline

aprantl requested review of this revision.Apr 26 2021, 4:49 PM
aprantl created this revision.
teemperor accepted this revision.Apr 27 2021, 10:22 AM

LGTM, thanks!

lldb/source/Expression/UserExpression.cpp
309

Nit: if (!diagnostic_manager.Diagnostics().empty()) {

This revision is now accepted and ready to land.Apr 27 2021, 10:22 AM
This revision was landed with ongoing or failed builds.Apr 27 2021, 10:41 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2021, 10:41 AM