mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 09:25:07 +00:00
Add Visual Studio Visualizer for ArrayRef
Modeled after visualization of llvm::SmallVec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a55495a2e8
commit
0b28fbb3a5
@ -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…
x
Reference in New Issue
Block a user