Improve the libstdc++ smart pointer formatters
- Display the strong/weak count in the summary
- Display the pointed object as a synthetic member
- Create synthetic children for weak/strong count
Paths
| Differential D25726
Improve the libstdc++ smart pointer formatters ClosedPublic Authored by tberghammer on Oct 18 2016, 6:48 AM.
Details Summary Improve the libstdc++ smart pointer formatters
Diff Detail Event Timelinetberghammer updated this object. Comment Actions
I run it before upload but it mush have picked up some strange config. Will run it again before submit. Thanks for noticing it. Comment Actions Looks good from my side. Enrico, do you want to have a look at this? A couple tiny comments below. Also, be sure to properly reformat and reorder the headers.
Comment Actions 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 5 inline comments as done. tberghammer added inline comments.
Closed by commit rL284828: Improve the libstdc++ smart pointer formatters (authored by tberghammer). · Explain WhyOct 21 2016, 8:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 75025 packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/smart_ptr/TestDataFormatterStdSmartPtr.py
source/Plugins/Language/CPlusPlus/CMakeLists.txt
source/Plugins/Language/CPlusPlus/LibStdcpp.cpp
source/Plugins/Language/CPlusPlus/LibStdcppSmartPointer.cpp
|
Could you add a test that accesses a non-existing subobject of ssp, to make sure it does something not-completely-broken.