Data formatter support for libc++ std::atomic<T>
authorEnrico Granata <egranata@apple.com>
Fri, 12 Feb 2016 22:18:24 +0000 (22:18 +0000)
committerEnrico Granata <egranata@apple.com>
Fri, 12 Feb 2016 22:18:24 +0000 (22:18 +0000)
commit75995b5e86dd66454b349ab58070b80b1757fcf0
tree6c5086d576eadcc983386362b76c4d7aea9521a2
parent1617d5ab15e2c0a1b74c85f0b1f8ef90e797125a
Data formatter support for libc++ std::atomic<T>

On libc++ std::atomic is a fairly simple data type (layout wise, at least), wrapping actual contents in a member variable named "__a_"

All the formatters are doing is "peel away" this intermediate layer and exposing user data as direct children or values of the std::atomic root variable

Fixes rdar://24329405

llvm-svn: 260752
lldb/lldb.xcodeproj/project.pbxproj
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/atomic/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/atomic/TestLibCxxAtomic.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/atomic/main.cpp [new file with mode: 0644]
lldb/source/DataFormatters/TypeCategoryMap.cpp
lldb/source/Plugins/Language/CPlusPlus/CMakeLists.txt
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
lldb/source/Plugins/Language/CPlusPlus/LibCxxAtomic.cpp [new file with mode: 0644]
lldb/source/Plugins/Language/CPlusPlus/LibCxxAtomic.h [new file with mode: 0644]