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

Add List natvis #36

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions radiant/Rad.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,22 @@ limitations under the License.
</Expand>
</Type>

<!-- rad::List -->
<Type Name="rad::List&lt;*&gt;">
<DisplayString Condition="m_storage.m_second.m_head.m_next == &amp;m_storage.m_second.m_head">empty</DisplayString>
<DisplayString Condition="m_storage.m_second.m_head.m_next != &amp;m_storage.m_second.m_head">non-empty</DisplayString>
<Expand>
<Item Name="[allocator]" ExcludeView="simple">m_storage</Item>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="Head" InitialValue="&amp;m_storage.m_second.m_head" />
<Variable Name="Cur" InitialValue="m_storage.m_second.m_head.m_next" />
<Loop>
<Break Condition="Cur == Head" />
<Item>(*(rad::detail::ListNode&lt;$T1&gt;*)Cur).m_elt</Item>
<Exec>Cur = Cur-&gt;m_next</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>

</AutoVisualizer>
Loading