[lldb] Show fix-it applied even if expression didn't evaluate succesfully
authorAugusto Noronha <augusto2112@me.com>
Thu, 16 Sep 2021 19:26:49 +0000 (16:26 -0300)
committerAugusto Noronha <augusto2112@me.com>
Thu, 23 Sep 2021 19:45:04 +0000 (16:45 -0300)
commitfbaf36721783c3bcbd45f81294e6980eaef165e4
tree3536b44a6d6abaf031a605b1edf82485130d04eb
parent221856f5cd13a877543ea6c5418330c1ee7fd715
[lldb] Show fix-it applied even if expression didn't evaluate succesfully

If we applied a fix-it before evaluating an expression and that
expression didn't evaluate correctly, we should still tell users about
the fix-it we applied since that may be the reason why it didn't work
correctly.

Differential Revision: https://reviews.llvm.org/D109908
lldb/source/Commands/CommandObjectExpression.cpp
lldb/test/API/commands/expression/fixits/TestFixIts.py
lldb/test/API/commands/expression/fixits/main.cpp