llvm-project/lldb/unittests/DataFormatter
Jan Kratochvil 14f443030c [nfc] [lldb] Prevent needless copies of DataExtractor
lldb_private::DataExtractor contains DataBufferSP m_data_sp which is
relatively expensive to copy (due to multi-threading locking).

llvm::DataExtractor does not have this problem as it uses StringRef
instead.

The copy constructor is explicit as otherwise it is easy to make
unintended modification of a local copy instead of a caller's instance
(D107470 but that is llvm::DataExtractor).

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D107485
2021-08-04 20:35:53 +02:00
..
CMakeLists.txt Reland [lldb] Unify type name matching in FormattersContainer II 2020-07-23 18:17:42 +02:00
FormatManagerTests.cpp
FormattersContainerTest.cpp Reland [lldb] Unify type name matching in FormattersContainer II 2020-07-23 18:17:42 +02:00
StringPrinterTests.cpp [nfc] [lldb] Prevent needless copies of DataExtractor 2021-08-04 20:35:53 +02:00