Author: mps
Date: Mon May 23 20:47:41 2016
New Revision: 270521

URL: http://llvm.org/viewvc/llvm-project?rev=270521&view=rev
Log:
Visualize ellipses in TemplateTypeParm and TemplateTypeParmDecl

Now a TemplateTypeParm will be visualized as typename ...T if it is a pack

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=270521&r1=270520&r2=270521&view=diff
==============================================================================
--- cfe/trunk/utils/ClangVisualizers/clang.natvis (original)
+++ cfe/trunk/utils/ClangVisualizers/clang.natvis Mon May 23 20:47:41 2016
@@ -113,8 +113,11 @@ For later versions of Visual Studio, no
     <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
   </Type>
   <Type Name="clang::TemplateTypeParmDecl">
-    <DisplayString Condition="!Typename">class {Name,view(cpp)}</DisplayString>
-    <DisplayString>typename {Name,view(cpp)}</DisplayString>
+    <DisplayString IncludeView="TorC" 
Condition="Typename">typename</DisplayString>
+    <DisplayString IncludeView="TorC" 
Condition="!Typename">class</DisplayString>
+    <DisplayString IncludeView="MaybeEllipses" 
Condition="((TemplateTypeParmType 
*)TypeForDecl)->CanTTPTInfo.ParameterPack">...</DisplayString>
+    <DisplayString IncludeView="MaybeEllipses" 
Condition="!((TemplateTypeParmType 
*)TypeForDecl)->CanTTPTInfo.ParameterPack"></DisplayString>
+    <DisplayString>{*this,view(TorC)} 
{*this,view(MaybeEllipses)}{Name,view(cpp)}</DisplayString> 
   </Type>
   <Type Name="clang::TemplateDecl">
     <DisplayString>template{*TemplateParams} {*TemplatedDecl};</DisplayString>


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

Reply via email to