-
Notifications
You must be signed in to change notification settings - Fork 1.6k
add a visualizer for _Ref_count_obj_alloc3
and _Ref_count_obj2
#2811
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
Changes from all commits
9ead36c
1cebd11
d1db424
e00d14d
381e235
84a9095
adf3273
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,6 +371,14 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
</Expand> | ||
</Type> | ||
|
||
<!-- VS 2019 16.3 --> | ||
<Type Name="std::_Ref_count_obj2<*>"> | ||
<DisplayString>make_shared</DisplayString> | ||
<Expand> | ||
<Item Condition="_Uses != 0" Name="[original ptr]">($T1 *) &_Storage</Item> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add a fixed string to a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why would we need to show a child item for an empty shared_ptr? (weak_ptrs will display themselves as expired, IIRC) |
||
</Expand> | ||
</Type> | ||
|
||
<!-- VC 2015 --> | ||
<Type Name="std::_Ref_count_obj_alloc<*>"> | ||
<DisplayString>allocate_shared</DisplayString> | ||
|
@@ -380,6 +388,21 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
</Expand> | ||
</Type> | ||
|
||
<!-- VS 2019 16.7: _Ref_count_obj_alloc3 --> | ||
<!-- VS 2019 16.3: _Ref_count_obj_alloc2 --> | ||
<Type Name="std::_Ref_count_obj_alloc3<*>"> | ||
<AlternativeType Name="std::_Ref_count_obj_alloc2<*>" /> | ||
<!-- stateless allocator --> | ||
<Intrinsic Optional="true" Name="allocator" Expression="*((_Mybase *) this)"/> | ||
<!-- stateful allocator --> | ||
<Intrinsic Optional="true" Name="allocator" Expression="_Myval"/> | ||
<DisplayString>allocate_shared</DisplayString> | ||
<Expand> | ||
<Item Condition="_Uses != 0" Name="[original ptr]">($T1 *) &_Storage</Item> | ||
<Item Name="[allocator]">allocator()</Item> | ||
</Expand> | ||
</Type> | ||
|
||
<!-- VC 2017, second toolset update --> | ||
<Type Name="std::_Ref_count_resource<*>"> | ||
<DisplayString>custom deleter</DisplayString> | ||
|
Uh oh!
There was an error while loading. Please reload this page.