forked from OSchip/llvm-project
e8daa2f843
Rationale: Pretty simply, the idea is that sometimes type names are way too long and contain way too many details for the average developer to care about. For instance, a plain ol' vector of int might be shown as std::__1::vector<int, std::__1::allocator<.... rather than the much simpler std::vector<int> form, which is what most developers would actually type in their code Proposed solution: Introduce a notion of "display name" and a corresponding API GetDisplayTypeName() to return such a crafted for visual representation type name Obviously, the display name and the fully qualified (or "true") name are not necessarily the same - that's the whole point LLDB could choose to pick the "display name" as its one true notion of a type name, and if somebody really needs the fully qualified version of it, let them deal with the problem Or, LLDB could rename what it currently calls the "type name" to be the "display name", and add new APIs for the fully qualified name, making the display name the default choice The choice that I am making here is that the type name will keep meaning the same, and people who want a type name suited for display will explicitly ask for one It is the less risky/disruptive choice - and it should eventually make it fairly obvious when someone is asking for the wrong type Caveats: - for now, GetDisplayTypeName() == GetTypeName(), there is no logic to produce customized display type names yet. - while the fully-qualified type name is still the main key to the kingdom of data formatters, if we start showing custom names to people, those should match formatters llvm-svn: 209072 |
||
---|---|---|
.. | ||
CF.cpp | ||
CMakeLists.txt | ||
CXXFormatterFunctions.cpp | ||
Cocoa.cpp | ||
DataVisualization.cpp | ||
FormatCache.cpp | ||
FormatClasses.cpp | ||
FormatManager.cpp | ||
LibCxx.cpp | ||
LibCxxList.cpp | ||
LibCxxMap.cpp | ||
LibCxxUnorderedMap.cpp | ||
LibStdcpp.cpp | ||
Makefile | ||
NSArray.cpp | ||
NSDictionary.cpp | ||
NSSet.cpp | ||
TypeCategory.cpp | ||
TypeCategoryMap.cpp | ||
TypeFormat.cpp | ||
TypeSummary.cpp | ||
TypeSynthetic.cpp | ||
ValueObjectPrinter.cpp |