Do not dereference std::unique_ptr by default
authorTamas Berghammer <tberghammer@google.com>
Fri, 31 Mar 2017 20:07:20 +0000 (20:07 +0000)
committerTamas Berghammer <tberghammer@google.com>
Fri, 31 Mar 2017 20:07:20 +0000 (20:07 +0000)
commitaf8953a0251608a7adbf02480f3fb03830e6f7e9
tree55cb9ca9e2a771333418394c7143d5ec4985180e
parent885fa12e8a0bf02c3d4c9dc5cbe5fffdb8cc5c8b
Do not dereference std::unique_ptr by default

Summary:
Displaying the object pointed by the unique_ptr can cause an infinite
recursion when we have a pointer loop so this change stops that
behavior. Additionally it makes the unique_ptr act more like a class
containing a pointer (what is the underlying truth) instead of some
"magic" class.

Reviewers: labath, jingham

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

llvm-svn: 299249
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/TestDataFormatterStdUniquePtr.py
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/main.cpp
lldb/source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp