[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
[LLDB][formatters] Add formatter for libc++'s std::spanThis patch adds a libcxx formatter for std::span. Theimplementation is based on the libcxx formatter forstd::vector. The main difference is
[LLDB][formatters] Add formatter for libc++'s std::spanThis patch adds a libcxx formatter for std::span. Theimplementation is based on the libcxx formatter forstd::vector. The main difference is the fact thatstd::span conditionally has a __size member basedon whether it has a static or dynamic extent.Example output of formatted span:(std::span<const int, 18446744073709551615>) $0 = size=6 { [0] = 0 [1] = 1 [2] = 2 [3] = 3 [4] = 4 [5] = 5}The second template parameter here is actually std::dynamic_extent,but the type declaration we get back from the TypeSystemClang is theactual value (which in this case is (size_t)-1). This is consistentwith diagnostics from clang, which doesn't desugar this value either.E.g.,:span.cpp:30:31: error: implicit instantiation of undefined template 'Undefined<std::span<int, 18446744073709551615>>'Testing:Added API-testsConfirmed manually using LLDB cli that printing spans works in various scenariosPatch by Michael Buch!Differential Revision: https://reviews.llvm.org/D127481