This is an archive of the discontinued LLVM Phabricator instance.

Add data formatter for libstdc++ unique_ptr
ClosedPublic

Authored by tberghammer on Oct 18 2016, 10:46 AM.

Diff Detail

Event Timeline

tberghammer retitled this revision from to Add data formatter for libstdc++ unique_ptr.
tberghammer updated this object.
tberghammer added reviewers: labath, granata.enrico.
tberghammer added a subscriber: lldb-commits.

There are same problems with formatting as in D25726. Also test case main() has wrong indentation.

labath edited edge metadata.Oct 19 2016, 6:35 AM

Looks fine with the usual comments. :)

packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/Makefile
5

Same comments as the previous patch (no CXXFLAGS, simplify no-limit-debug-info handling)

packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/TestDataFormatterStdUniquePtr.py
33

Can you add a test accessing nup.deleter, iup.deleter (I guess they should error out?)

source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp
110

~0 ?

I see you already got a bunch of feedback on specific items. The overall idea looks good to me. I'll try to delve a little deeper in the code ASAP (I was out for a couple days and have some backlog...), but should be good to go assuming you address the feedback you already got + make sure tests work!

tberghammer edited edge metadata.
tberghammer marked 2 inline comments as done.
tberghammer added inline comments.Oct 21 2016, 7:36 AM
source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp
110

The user compares the result against UINT32_MAX what is wrong but I don't want to start changing all use case of this function in this CL.

labath accepted this revision.Oct 21 2016, 7:46 AM
labath edited edge metadata.
This revision is now accepted and ready to land.Oct 21 2016, 7:46 AM

Headers orders is still not correct.

This revision was automatically updated to reflect the committed changes.