r271966 - Improve Visual Studio visualization of DeclaratorDecl

Mike Spertus via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 6 17:27:37 PDT 2016


Author: mps
Date: Mon Jun  6 19:27:37 2016
New Revision: 271966

URL: http://llvm.org/viewvc/llvm-project?rev=271966&view=rev
Log:
Improve Visual Studio visualization of DeclaratorDecl

With this change, you can now expand its name and type.

Modified:
    cfe/trunk/utils/ClangVisualizers/clang.natvis

Modified: cfe/trunk/utils/ClangVisualizers/clang.natvis
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ClangVisualizers/clang.natvis?rev=271966&r1=271965&r2=271966&view=diff
==============================================================================
--- cfe/trunk/utils/ClangVisualizers/clang.natvis (original)
+++ cfe/trunk/utils/ClangVisualizers/clang.natvis Mon Jun  6 19:27:37 2016
@@ -403,6 +403,10 @@ For later versions of Visual Studio, no
   </Type>
   <Type Name="clang::DeclaratorDecl">
     <DisplayString>{DeclType,view(cpp)} {Name,view(cpp)}</DisplayString>
+    <Expand>
+      <Item Name="Name">Name</Item>
+      <Item Name="DeclType">DeclType</Item>
+    </Expand>
   </Type>
   <Type Name="clang::VarDecl">
     <DisplayString>{*(DeclaratorDecl*)this,nd}</DisplayString>




More information about the cfe-commits mailing list