forked from OSchip/llvm-project
Add Visual Studio Visualizer for ArrayRef
Modeled after visualization of llvm::SmallVec llvm-svn: 271847
This commit is contained in:
parent
4d4339d1e8
commit
3e45d77835
|
@ -21,7 +21,17 @@ For later versions of Visual Studio, no setup is required.
|
|||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="llvm::ArrayRef<*>">
|
||||
<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<*>">
|
||||
<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
|
||||
|
|
Loading…
Reference in New Issue