Improved Visual Studio debugging visualizers

Nikola Smiljanic popizdeh at gmail.com
Thu Feb 6 15:00:28 PST 2014


The patch has a number of improvements for existing visualizers:

- StringRef displays properly even when it's not null terminated
- All pointer types auto expand, meaning there's no [ptr] member that needs
to be expanded in order to see the contents of the pointer (one click less,
yay)
- PointerUnions finally display the actual type in the tooltip as opposed
to PT1, they also auto expand
- All containers use terms "size" and "capacity" irregardless of what the
member variables are called (every container seems to use different name)
- deleted SmallVector visualizer as the debugger is smart enough to use
the base class visualizer
- a few minor simplifications

The tooltip format could be tweaked somewhat, I tried to follow the format
used by STL visualizers. PointerUnion tooltip just displays the type and
the value of the pointer without visualizing pointer contents. This seemed
more readable, and contents is only one click away anyway.

P.S. I'm not subscribed to this list, but I do have commit access :)

Nikola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140207/5f7f41da/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visualizer.patch
Type: application/octet-stream
Size: 12728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140207/5f7f41da/attachment.obj>


More information about the llvm-commits mailing list