[lldb][Test] Make TestFrameFormatNameWithArgs.test more compatible across platforms
authorMichael Buch <michaelbuch12@gmail.com>
Wed, 2 Nov 2022 17:18:57 +0000 (10:18 -0700)
committerMichael Buch <michaelbuch12@gmail.com>
Thu, 3 Nov 2022 13:30:14 +0000 (06:30 -0700)
commitc188910694ab821aabc0ca11f4636b69f5f7b4f1
tree01c0ee0137828cc8fcfe372be670e65dbfa306c9
parent9df924a634ac5ea702b0d8d0d8b737c819a98095
[lldb][Test] Make TestFrameFormatNameWithArgs.test more compatible across platforms

On Linux the `std::function` behaved differently to that on Darwin.

This patch removes usage of `std::function` in the test but attempts
to retain the test-coverage. We mainly want function types appearing
in the template argument and function argument lists.

Also add a `char const*` overload to one of the test functions to
cover the "format function argument using ValueObject formatter" code-path.

Differential Revision: https://reviews.llvm.org/D137272
lldb/test/Shell/Settings/Inputs/names.cpp
lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test