]> granicus.if.org Git - clang/commitdiff
Slightly improve Visual Studio visualization of clang::Expr
authorMike Spertus <mike@spertus.com>
Mon, 6 Jun 2016 03:37:18 +0000 (03:37 +0000)
committerMike Spertus <mike@spertus.com>
Mon, 6 Jun 2016 03:37:18 +0000 (03:37 +0000)
Now it gives the StmtClass of the Expr as well as the type. It's still
a long way from full visualization of expressions, but I have found
that having the class really helps when debugging, so definitely
worth submitting.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271866 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ClangVisualizers/clang.natvis

index 97f0b0d5f848daf5c1cdce281adeebd770b03985..2b0a502207bd943b167e23d877706f1dbc36f76d 100644 (file)
@@ -424,6 +424,6 @@ For later versions of Visual Studio, no setup is required-->
     </Expand>\r
   </Type>\r
   <Type Name="clang::Expr">\r
-    <DisplayString>Expression of type {TR,view(cpp)}</DisplayString>\r
+    <DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>\r
   </Type>\r
 </AutoVisualizer>\r