Skip to content

Commit

Permalink
Better char vector visualization (#3772)
Browse files Browse the repository at this point in the history
  • Loading branch information
xisui-MSFT authored Jun 15, 2023
1 parent a9e0c12 commit 3e00fa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stl/debugger/STL.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,10 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
<Intrinsic Name="size" Expression="(size_t)(_Mypair._Myval2._Mylast - _Mypair._Myval2._Myfirst)" />
<Intrinsic Name="capacity" Expression="(size_t)(_Mypair._Myval2._Myend - _Mypair._Myval2._Myfirst)" />
<SmartPointer Usage="Indexable" DefaultExpansion="false">data()</SmartPointer>
<DisplayString Condition="size() > 0">{data(),na} (size = {size()})</DisplayString>
<DisplayString Condition="size() > 0">{data(),[size()]na}</DisplayString>
<DisplayString Condition="size() == 0">{{empty}}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">size()</Item>
<Item Name="[capacity]" ExcludeView="simple">capacity()</Item>
<Item Name="[allocator]" ExcludeView="simple">_Mypair</Item>
<ArrayItems>
Expand Down

0 comments on commit 3e00fa3

Please sign in to comment.