diff --git a/utils/LLVMVisualizers/llvm.natvis b/utils/LLVMVisualizers/llvm.natvis index e0812a0286e..963c94f7e11 100644 --- a/utils/LLVMVisualizers/llvm.natvis +++ b/utils/LLVMVisualizers/llvm.natvis @@ -10,36 +10,36 @@ For later versions of Visual Studio, no setup is required. - empty - {{ size={($T1*)EndX - ($T1*)BeginX} }} + empty + {{ size={Size} }} - ($T1*)EndX - ($T1*)BeginX - ($T1*)CapacityX - ($T1*)BeginX + Size + Capacity - ($T1*)EndX - ($T1*)BeginX + Size ($T1*)BeginX - + {(($T1*)BeginX)[0]}{*this,view(elt1)} - + , {(($T1*)BeginX)[1]}{*this,view(elt2)} - + , {(($T1*)BeginX)[2]}{*this,view(elt3)} - + , {(($T1*)BeginX)[2]}{*this,view(elt4)} - - , /* {(($T1*)EndX - ($T1*)BeginX) - 4} more*/ - empty - {{{*this,view(elt0)}}} + + , /* {Size - 4} more*/ + empty + {{{*this,view(elt0)}}} - ($T1*)EndX - ($T1*)BeginX - ($T1*)CapacityX - ($T1*)BeginX + Size + Capacity - ($T1*)EndX - ($T1*)BeginX + Size ($T1*)BeginX @@ -56,13 +56,13 @@ For later versions of Visual Studio, no setup is required. - {(const char*)BeginX,[(char*)EndX - (char*)BeginX] na} - (const char*)BeginX,[(char*)EndX - (char*)BeginX] + {(const char*)BeginX,[Size] na} + (const char*)BeginX,[Size] - (char*)EndX - (char*)BeginX - (char*)CapacityX - (char*)BeginX + Size + Capacity - (char*)EndX - (char*)BeginX + Size (char*)BeginX