[cfe-commits] r155140 - /cfe/trunk/utils/clangVisualizers.txt

David Blaikie dblaikie at gmail.com
Thu Apr 19 10:26:49 PDT 2012


Author: dblaikie
Date: Thu Apr 19 12:26:49 2012
New Revision: 155140

URL: http://llvm.org/viewvc/llvm-project?rev=155140&view=rev
Log:
Add SmallVectorImpl Visual Studio visualizer. Patch by Nikola Smiljanic.

Modified:
    cfe/trunk/utils/clangVisualizers.txt

Modified: cfe/trunk/utils/clangVisualizers.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/clangVisualizers.txt?rev=155140&r1=155139&r2=155140&view=diff
==============================================================================
--- cfe/trunk/utils/clangVisualizers.txt (original)
+++ cfe/trunk/utils/clangVisualizers.txt Thu Apr 19 12:26:49 2012
@@ -27,6 +27,32 @@
 	)
 }
 
+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])





More information about the cfe-commits mailing list