[Lldb-commits] [PATCH] D74478: [lldb] Let TypeSystemClang::GetDisplayTypeName remove anonymous and inline namespaces.

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 13 05:59:21 PST 2020


teemperor added a comment.

In D74478#1873581 <https://reviews.llvm.org/D74478#1873581>, @shafik wrote:

> I can see how stripping `__1` would be nice but I seeing `(anonymous namespace)` may be useful to know especially b/c it effects visibility and linkage. It would be nicer if could make this optional and default it off but be able to turn it back on.


You can always use the 'raw' output on variables (-R) for seeing all information about a variable and its type (including the full non-display name). Also I think the general consensus is that we print the types as close as possible as how the user is using them in the program (which is what for example Clang is doing in its diagnostics).

I updated the review description to better illustrate how verbose the anonymous/inline namespaces are in the type descriptions.


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74478/new/

https://reviews.llvm.org/D74478





More information about the lldb-commits mailing list