This diff adds a data formatter for libstdcpp's multimap. Besides, it improves and unifies the tests for multimap for libcxx and libstdcpp for maintainability.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
pretty good, just cosmetic changes and a comment update needed
| lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp | ||
|---|---|---|
| 915 | Now I don't like the name of the class. Let's rename it to MakeLikeSynthProvider, and update the comments mentioning that it supports any map-like structure like map, multimap, set and multiset. | |
| lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/multimap/TestDataFormatterGenericMultiMap.py | ||
| 40 | nice!! | |
| 88–285 | the general practice is to leave a space after each comma for readability, e.g. self.check("ss", 3)instead of self.check("ss",3)these little details matter as it help people more easily distinguish the end of each token | |
| 320 | same here | |
I thought that you misprinted the name and wanted to call the formatter MapLikeSynth provider. Please, correct me if I am wrong and I will change names accordingly
thanks! i'll land this now
| lldb/examples/synthetic/gnu_libstdcpp.py | ||
|---|---|---|
| 321 | this is correct | |
this is correct