hanchenye-llvm-project/lldb
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
..
docs Fix the quoting in my x packet documentation so it's 2014-05-13 22:21:34 +00:00
examples Fixed an issue where if you called: 2014-04-07 23:50:17 +00:00
include Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
lib Attempt to fix the build 2014-04-25 09:49:32 +00:00
lldb.xcodeproj Refactored RegisterInfoInterface into its own header. 2014-05-16 20:43:19 +00:00
lldb.xcworkspace Move the performance test cases into their own project. 2013-03-18 23:05:00 +00:00
resources Update the lldb version number in the xcode project files from 310.99.0 to 320.99.0. 2014-01-10 06:12:10 +00:00
scripts Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
source Introduce the concept of a "display name" for types 2014-05-17 19:14:17 +00:00
test Added gdbremote tests to verify kill and continue after attach. 2014-05-14 19:34:06 +00:00
tools Do not require the triple to be hard-coded 2014-05-16 13:26:45 +00:00
utils LUI: Fix some issues causing crashes in the source view 2013-10-23 01:18:21 +00:00
www Remove obsolete CXX11 buld instructions 2014-05-03 15:05:40 +00:00
.arcconfig Adding .arcconfig file to LLDB to allow using Phabricator for reviews 2013-05-23 20:21:28 +00:00
.gitignore spruce up .gitignore 2014-03-18 04:43:49 +00:00
CMakeLists.txt build: use keyword signatures for link dependencies 2014-04-22 03:18:34 +00:00
INSTALL.txt Update INSTALL.txt to mention LLDB builds on Linux with GCC or Clang. 2013-02-21 22:37:18 +00:00
LICENSE.TXT
Makefile Add some missing defines that are already present in the cmake side. 2014-03-12 10:35:00 +00:00