[all-commits] [llvm/llvm-project] 8e2bd0: [lldb] Fix `po` alias by printing fix-its to the c...
Pete Lawrence via All-commits
all-commits at lists.llvm.org
Fri Oct 13 10:07:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e2bd05c4e86834a318ef2279e271f0769be4988
https://github.com/llvm/llvm-project/commit/8e2bd05c4e86834a318ef2279e271f0769be4988
Author: Pete Lawrence <plawrence at apple.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
M lldb/source/Commands/CommandObjectDWIMPrint.cpp
M lldb/source/Commands/CommandObjectExpression.cpp
M lldb/test/API/commands/expression/fixits/TestFixIts.py
A lldb/test/API/lang/cpp/fixits/Makefile
A lldb/test/API/lang/cpp/fixits/TestCppFixIts.py
A lldb/test/API/lang/cpp/fixits/main.cpp
Log Message:
-----------
[lldb] Fix `po` alias by printing fix-its to the console. (#68755)
The `po` alias now matches the behavior of the `expression` command when
the it can apply a Fix-It to an expression.
Modifications
- Add has `m_fixed_expression` to the `CommandObjectDWIMPrint` class a
`protected` member that stores the post Fix-It expression, just like the
`CommandObjectExpression` class.
- Converted messages to present tense.
- Add test cases that confirms a Fix-It for a C++ expression for both
`po` and `expressions`
rdar://115317419
More information about the All-commits
mailing list