From 2e3380308efac0c1e5f26d8000e44a66bf839c02 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 19 Apr 2012 17:26:49 +0000 Subject: [PATCH] Add SmallVectorImpl Visual Studio visualizer. Patch by Nikola Smiljanic. llvm-svn: 155140 --- clang/utils/clangVisualizers.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/clang/utils/clangVisualizers.txt b/clang/utils/clangVisualizers.txt index 0fef65f4ed3e..975f9c546e0f 100644 --- a/clang/utils/clangVisualizers.txt +++ b/clang/utils/clangVisualizers.txt @@ -27,6 +27,32 @@ llvm::SmallVector<*,*>{ ) } +llvm::SmallVectorImpl<*>{ + preview ( + #( + "[", + ($T1*)$e.EndX - ($T1*)$e.BeginX, + "](", + #array( + expr: (($T1*)$e.BeginX)[$i], + size: ($T1*)$e.EndX - ($T1*)$e.BeginX + ), + ")" + ) + ) + + children ( + #( + #([size] : ($T1*)$e.EndX - ($T1*)$e.BeginX), + #([capacity] : ($T1*)$e.CapacityX - ($T1*)$e.BeginX), + #array( + expr: (($T1*)$e.BeginX)[$i], + size: ($T1*)$e.EndX - ($T1*)$e.BeginX + ) + ) + ) +} + llvm::StringRef{ preview ([$e.Data,s]) stringview ([$e.Data,sb])