Files
clang-p2996/lldb/source/Commands/CommandObjectDWIMPrint.cpp
Felipe de Azevedo Piovezan 65d444b9ed [lldb][nfc] Factor out repeated code in DWIM Print (#85669)
The code that prints ValueObjects is duplicated across two different
cases of the dwim-print command, and a subsequent commit will add a
third case. As such, this commit factors out the common code into a
lambda. A free function was considered, but there is too much
function-local context required in that.

We also reword some of the comments so that they stop counting cases,
making it easier to add other cases later.
2024-03-18 14:34:08 -07:00

8.4 KiB