Skip to content
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
11 changes: 6 additions & 5 deletions stl/debugger/STL.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,8 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
<Type Name="std::basic_string_view&lt;*,*&gt;">
<Intrinsic Name="size" Expression="_Mysize" />
<Intrinsic Name="data" Expression="_Mydata" />
<DisplayString>{_Mydata,[_Mysize]}</DisplayString>
<StringView>_Mydata,[_Mysize]</StringView>
<DisplayString>{_Mydata,[_Mysize]na}</DisplayString>
<StringView>_Mydata,[_Mysize]na</StringView>
<Expand>
<Item Name="[size]" ExcludeView="simple">size()</Item>
<ArrayItems>
Expand All @@ -1125,19 +1125,20 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

<!-- This is for _ITERATOR_DEBUG_LEVEL == 0 and must have lower priority. -->
<Type Name="std::_String_view_iterator&lt;*&gt;" Priority="MediumLow">
<SmartPointer Usage="Indexable">_Myptr</SmartPointer>
<SmartPointer Usage="Indexable">_Myptr,na</SmartPointer>
<Expand>
<Item Name="[ptr]">_Myptr</Item>
</Expand>
</Type>

<!-- This is for _ITERATOR_DEBUG_LEVEL != 0 and must have higher priority. -->
<Type Name="std::_String_view_iterator&lt;*&gt;" Priority="Medium">
<SmartPointer Usage="Indexable">_Mydata + _Myoff</SmartPointer>
<DisplayString>{_Mydata + _Myoff,[_Mysize - _Myoff]na}</DisplayString>
<StringView>_Mydata + _Myoff,[_Mysize - _Myoff]na</StringView>
<Expand>
<Item Name="[ptr]">_Mydata + _Myoff</Item>
<Item Name="[offset]">_Myoff</Item>
<Item Name="[string_view]">_Mydata,[_Mysize]</Item>
<Item Name="[string_view]">_Mydata,[_Mysize]na</Item>
</Expand>
</Type>

Expand Down