mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 23:51:56 +00:00
[Visualizers] Fix SmallVector<T> visualizer for T inside an anonymous namespace. Use value_type
instead of $T1
.
At least on MSVC 2022, using $T1 does not work. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D118105
This commit is contained in:
parent
0c56bc92e4
commit
1f3aa2af9d
@ -10,13 +10,13 @@ For later versions of Visual Studio, no setup is required.
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<Type Name="llvm::SmallVectorImpl<*>">
|
||||
<DisplayString IncludeView ="elt0" Condition="Size == 0"></DisplayString>
|
||||
<DisplayString IncludeView ="elt0">{(($T1*)BeginX)[0]}{*this,view(elt1)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt0">{((value_type*)BeginX)[0]}{*this,view(elt1)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt1" Condition="Size == 1"></DisplayString>
|
||||
<DisplayString IncludeView ="elt1">, {(($T1*)BeginX)[1]}{*this,view(elt2)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt1">, {((value_type*)BeginX)[1]}{*this,view(elt2)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt2" Condition="Size == 2"></DisplayString>
|
||||
<DisplayString IncludeView ="elt2">, {(($T1*)BeginX)[2]}{*this,view(elt3)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt2">, {((value_type*)BeginX)[2]}{*this,view(elt3)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt3" Condition="Size == 3"></DisplayString>
|
||||
<DisplayString IncludeView ="elt3">, {(($T1*)BeginX)[3]}{*this,view(elt4)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt3">, {((value_type*)BeginX)[3]}{*this,view(elt4)}</DisplayString>
|
||||
<DisplayString IncludeView ="elt4" Condition="Size == 4"></DisplayString>
|
||||
<DisplayString IncludeView ="elt4">, /* {Size - 4} more*/ </DisplayString>
|
||||
<DisplayString Condition="Size == 0">empty</DisplayString>
|
||||
@ -27,7 +27,7 @@ For later versions of Visual Studio, no setup is required.
|
||||
<Item Name="[capacity]">Capacity</Item>
|
||||
<ArrayItems>
|
||||
<Size>Size</Size>
|
||||
<ValuePointer>($T1*)BeginX</ValuePointer>
|
||||
<ValuePointer>(value_type*)BeginX</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
Loading…
Reference in New Issue
Block a user