Add Visual Studio Visualizer for ArrayRef

Modeled after visualization of llvm::SmallVec

llvm-svn: 271847
This commit is contained in:
Mike Spertus 2016-06-05 18:34:02 +00:00
parent 4d4339d1e8
commit 3e45d77835
1 changed files with 12 additions and 1 deletions

View File

@ -21,7 +21,17 @@ For later versions of Visual Studio, no setup is required.
</ArrayItems>
</Expand>
</Type>
<Type Name="llvm::ArrayRef&lt;*&gt;">
<DisplayString Condition="Length == 0">empty</DisplayString>
<DisplayString Condition="Length != 0">{{ size={Length} }}</DisplayString>
<Expand>
<Item Name="[size]">Length</Item>
<ArrayItems>
<Size>Length</Size>
<ValuePointer>Data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="llvm::SmallString&lt;*&gt;">
<DisplayString>{BeginX,s}</DisplayString>
<StringView>BeginX,s</StringView>
@ -169,6 +179,7 @@ For later versions of Visual Studio, no setup is required.
</Expand>
</Type>
<!-- Since we're in MSVC, we can assume that the system is little endian. Therefore
the little and native cases just require a cast. Handle this easy case first. Use
a wildcard for the second template argument (the endianness), but we will use a