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 |
||
---|---|---|
.. | ||
Python | ||
CMakeLists.txt | ||
Makefile | ||
build-lldb-llvm-clang | ||
build-llvm.pl | ||
build-swig-wrapper-classes.sh | ||
buildbot.py | ||
checkpoint-llvm.pl | ||
disasm-gdb-remote.pl | ||
finish-swig-wrapper-classes.sh | ||
generate-vers.pl | ||
install-lldb.sh | ||
lldb.swig | ||
lldb_python_module.cmake | ||
sed-sources | ||
verify_api.py |