Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STL.natvis: add specializations for shared_ptr<void>, weak_ptr<void>, and unique_ptr<void, deleter> #2706

Merged
merged 2 commits into from
May 24, 2022

Conversation

fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented May 4, 2022

Fixes #2688

It works, but perhaps there is an option without the duplication...

@fsb4000 fsb4000 requested a review from a team as a code owner May 4, 2022 06:03
@StephanTLavavej StephanTLavavej added the visualizer How the VS debugger displays STL types label May 4, 2022
@fsb4000 fsb4000 changed the title STL.natvis: add specializations for shared_ptr<void> and weak_ptr<void> STL.natvis: add specializations for shared_ptr<void>, weak_ptr<void> and unique_ptr<void, deleter> May 4, 2022
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@CaseyCarter
Copy link
Member

It works, but perhaps there is an option without the duplication...

We could tag the problematic part of the original visualizer Optional, but the result would be less than ideal. I don't know how to otherwise avoid this duplication.

@CaseyCarter CaseyCarter changed the title STL.natvis: add specializations for shared_ptr<void>, weak_ptr<void> and unique_ptr<void, deleter> STL.natvis: add specializations for shared_ptr<void>, weak_ptr<void>, and unique_ptr<void, deleter> May 22, 2022
@@ -288,6 +288,16 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
</Type>

<!-- VC 2015 -->
<Type Name="std::unique_ptr&lt;void, *&gt;">
Copy link
Member

@CaseyCarter CaseyCarter May 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pulled these changes into internal VS-PR-400483. Please notify me of any changes to this file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add this to the MSVC-PR mirror too.

Copy link
Member

@CaseyCarter CaseyCarter May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well. I don't plan to include the "big" visualizer PR. I won't have time to review it today, expected is taking an ... unexpectedly long time to review. 😎

@StephanTLavavej StephanTLavavej self-assigned this May 23, 2022
@StephanTLavavej StephanTLavavej merged commit ef905a5 into microsoft:main May 24, 2022
@StephanTLavavej
Copy link
Member

Thanks for fixing these visualizers! 😸 👁️ 🎉

@fsb4000 fsb4000 deleted the fix2688 branch May 24, 2022 05:15
fsb4000 added a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
visualizer How the VS debugger displays STL types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STL.natvis: shared_ptr<void> outputs an error
4 participants
  翻译: