From cfb7120d2fbb18a190f1ce81117da587187b578f Mon Sep 17 00:00:00 2001 From: Mike Spertus Date: Tue, 29 Mar 2016 10:57:24 +0000 Subject: [PATCH] Visual Studio native visualization for TemplateParameterList and TemplateTypeParmDecl With this change, a TemplateParameterList will suggestively display in the locals window something like: git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264714 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ClangVisualizers/clang.natvis | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/utils/ClangVisualizers/clang.natvis b/utils/ClangVisualizers/clang.natvis index ab99328a16..411d7a2be2 100644 --- a/utils/ClangVisualizers/clang.natvis +++ b/utils/ClangVisualizers/clang.natvis @@ -112,6 +112,10 @@ For later versions of Visual Studio, no setup is required--> Destructor {{~{Name,view(cpp)}()}} + + class {Name,view(cpp)} + typename {Name,view(cpp)} + {Name,view(cpp)} {Name} @@ -371,4 +375,25 @@ For later versions of Visual Studio, no setup is required--> ($T1 *)Ptr + + + {*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)} + + , {*((NamedDecl **)(this+1))[1],view(cpp)}{*this,view(parm2)} + + , {*((NamedDecl **)(this+1))[2],view(cpp)}{*this,view(parm3)} + + , {*((NamedDecl **)(this+1))[3],view(cpp)}{*this,view(parm4)} + + , {*((NamedDecl **)(this+1))[4],view(cpp)}{*this,view(parm5)} + + , /* Expand for more params */ + <{*this,view(parm0)}> + + + NumParams + (NamedDecl **)(this+1) + + + -- 2.40.0