[DataFormatters] Adjusting libc++ std::list formatter to act better with pointers...
authorShafik Yaghmour <syaghmour@apple.com>
Wed, 24 Apr 2019 17:38:40 +0000 (17:38 +0000)
committerShafik Yaghmour <syaghmour@apple.com>
Wed, 24 Apr 2019 17:38:40 +0000 (17:38 +0000)
commitabdb816b776cc43a1f318c84d26e1fe5840da073
treea946cfcb3f9ff59ac5eb39bf68017250448d8f92
parent33d806a517994f8242f3fb1d35ad32f53604df61
[DataFormatters] Adjusting libc++ std::list formatter to act better with pointers and references and adding a test to cover a previous related fix

Summary:
This previous fix https://github.com/llvm-mirror/lldb/commit/5469bda296c183d1b6bf74597c88c9ed667b3145 did not have a test since we did not have a reproducer.

This is related to how formatters deal with pointers and references. The added tests both the new behavior and covers the previous bug fix as well.

Differential Revision: https://reviews.llvm.org/D60588

llvm-svn: 359118
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/main.cpp
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp