Improved Visual Studio debugging visualizers

Aaron Ballman aaron at aaronballman.com
Fri Feb 7 14:49:39 PST 2014


Thank you for working on this -- the changes LGTM!

~Aaron

On Thu, Feb 6, 2014 at 6:00 PM, Nikola Smiljanic <popizdeh at gmail.com> wrote:
> 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



More information about the llvm-commits mailing list