Skip to content

Commit

Permalink
Add List natvis
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-craig-cs committed Nov 13, 2024
1 parent 933a601 commit ab329df
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions radiant/Rad.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,21 @@ 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>
<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>

0 comments on commit ab329df

Please sign in to comment.