Author: mps
Date: Thu Mar 31 01:09:56 2016
New Revision: 264997

URL: http://llvm.org/viewvc/llvm-project?rev=264997&view=rev
Log:
Visual Studio native visualization for clang::TemplateDecl

With this change, TemplateDecls display in the Locals Window something like

  template<typename T, typename U> struct A;


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=264997&r1=264996&r2=264997&view=diff
==============================================================================
--- cfe/trunk/utils/ClangVisualizers/clang.natvis (original)
+++ cfe/trunk/utils/ClangVisualizers/clang.natvis Thu Mar 31 01:09:56 2016
@@ -116,6 +116,9 @@ For later versions of Visual Studio, no
     <DisplayString Condition="!Typename">class {Name,view(cpp)}</DisplayString>
     <DisplayString>typename {Name,view(cpp)}</DisplayString>
   </Type>
+  <Type Name="clang::TemplateDecl">
+    <DisplayString>template{*TemplateParams} {*TemplatedDecl};</DisplayString>
+  </Type>
   <Type Name="clang::NamedDecl" >
     <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
     <DisplayString>{Name}</DisplayString>


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to