llvm-project/lldb/source
Enrico Granata e8daa2f843 Introduce the concept of a "display name" for types
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
2014-05-17 19:14:17 +00:00
..
API Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
Breakpoint Rename eExecution*** to eExpression*** to be consistent with the result type. 2014-05-05 02:47:44 +00:00
Commands lldb TOT is dropping the last entry for multi-line IOHandlers that use the IOHandlerDelegateMultiline. 2014-05-08 16:59:00 +00:00
Core Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
DataFormatters Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
Expression Rename eExecution*** to eExpression*** to be consistent with the result type. 2014-05-05 02:47:44 +00:00
Host "process kill" and "process detach" were causing double prompts or prompts that would overwrite each other. Fixed now. 2014-05-08 23:04:39 +00:00
Interpreter Args::StringToGenericRegister will now accept "lr" as 2014-05-09 04:09:48 +00:00
Plugins Update how we create our MCSymbolizer to keep working correctly 2014-05-17 00:27:44 +00:00
Symbol Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
Target Fixed SectionLoadHistory::GetSectionLoadListForStopID() to always return a valid "SectionLoadList *". 2014-05-14 17:25:00 +00:00
Utility Switch NULL to C++11 nullptr in source/Symbol and source/Utility 2014-04-20 13:17:36 +00:00
CMakeLists.txt lldb arm64 import. 2014-03-29 18:54:20 +00:00
Makefile Make lldb build with Makefiles on OS X. 2014-01-18 08:05:32 +00:00
lldb-log.cpp Put "jit" in alpha order in log category list 2014-03-05 13:43:23 +00:00
lldb.cpp sanitise sign comparisons 2014-04-02 03:51:35 +00:00