llvm.org GIT mirror llvm / 2a6b57b
Improved Visual Studio 2015 visualization of SmallVectorImpl When visualizing small vectors in VS2015, show the first few elements in the DisplayString instead of the size. For example, a SmallVector of DeclAccessPair will visualize like {public typename ...Ts, public typename U} The visualization in VS2013 remains the same because we continue to include the old visualizer with a lower-than-default priority of MediumLow, and the same SmallVector would continue to be visualized as {size = 2} git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272525 91177308-0d34-0410-b5e6-96231b3b80d8 Mike Spertus 3 years ago
1 changed file(s) with 25 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 For later versions of Visual Studio, no setup is required.
88 -->
99
10
11 <Type Name="llvm::SmallVectorImpl<*>">
10 <!-- VS2013 -->
11
1212 empty
1313 {{ size={($T1*)EndX - ($T1*)BeginX} }}
14
15 ($T1*)EndX - ($T1*)BeginX
16 ($T1*)CapacityX - ($T1*)BeginX
17
18 ($T1*)EndX - ($T1*)BeginX
19 ($T1*)BeginX
20
21
22
23
24
25
26 {(($T1*)BeginX)[0]}{*this,view(elt1)}
27
28 , {(($T1*)BeginX)[1]}{*this,view(elt2)}
29
30 , {(($T1*)BeginX)[2]}{*this,view(elt3)}
31
32 , {(($T1*)BeginX)[2]}{*this,view(elt4)}
33
34 , /* {(($T1*)EndX - ($T1*)BeginX) - 4} more*/
35 empty
36 {{{*this,view(elt0)}}}
1437
1538 ($T1*)EndX - ($T1*)BeginX
1639 ($T1*)CapacityX - ($T1*)BeginX