This is an archive of the discontinued LLVM Phabricator instance.

Typesafe visualization of PointerIntPairs in Visual Studio
ClosedPublic

Authored by mspertus on Mar 18 2016, 10:02 AM.

Details

Summary

In the <DisplayString> of PointerIntPair , I cast the pointer to the actual type, so VS can leverage it while visualizing, not unlike the recent change to PointerUnion visualization.
In the expansion, the current code is casting to the incorrect type (wrong number of stars), so I fixed that as well.

Note to Reviewers: I will continue to make frequent changes to the MSVC visualizers. While these are worthwhile, I don't want to overwhelm the reviewers. Is it OK for me to request review after commit in the future when I judge that it is appropriate to do so (E.g., this diff)?

Diff Detail

Event Timeline

mspertus updated this revision to Diff 51035.Mar 18 2016, 10:02 AM
mspertus retitled this revision from to Typesafe visualization of PointerIntPairs in Visual Studio.
mspertus updated this object.
mspertus added a subscriber: cfe-commits.
aaron.ballman accepted this revision.Mar 18 2016, 10:27 AM
aaron.ballman edited edge metadata.

LGTM!

Note to Reviewers: I will continue to make frequent changes to the MSVC visualizers. While these are worthwhile, I don't want to overwhelm the reviewers. Is it OK for me to request review after commit in the future when I judge that it is appropriate to do so (E.g., this diff)?

I am perfectly happy to do post-commit reviews for changes to natvis files moving forward.

This revision is now accepted and ready to land.Mar 18 2016, 10:27 AM
mspertus closed this revision.Mar 18 2016, 1:12 PM

Committed as revision 263821.

Thanks for the trust, Aaron! Note that my next revision (function and member prototype visualization) will be largish, and I would still appreciate a review before commit.