[DataFormatters] Add formatter for libc++ std::unique_ptr
authorshafik <syaghmour@apple.com>
Mon, 23 Mar 2020 18:42:41 +0000 (11:42 -0700)
committershafik <syaghmour@apple.com>
Mon, 23 Mar 2020 18:48:20 +0000 (11:48 -0700)
commita567d6809e1514f34975d746bb1c93301792a74c
tree94e0f73824ff08677fee2682db41418a3b768123
parent1b9cd51d55b33cfaf68e21fa5396539ca54e5324
[DataFormatters] Add formatter for libc++ std::unique_ptr

This adds a formatter for libc++ std::unique_ptr.

I also refactored GetValueOfCompressedPair(...) out of LibCxxList.cpp since I need the same functionality and it made sense to share it.

Differential Revision: https://reviews.llvm.org/D76476
lldb/include/lldb/DataFormatters/FormattersHelpers.h
lldb/source/DataFormatters/FormattersHelpers.cpp
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
lldb/source/Plugins/Language/CPlusPlus/LibCxx.h
lldb/source/Plugins/Language/CPlusPlus/LibCxxList.cpp
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/unique_ptr/Makefile [new file with mode: 0644]
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/unique_ptr/TestDataFormatterLibcxxUniquePtr.py [new file with mode: 0644]
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/unique_ptr/main.cpp [new file with mode: 0644]