From: Mike Spertus Date: Sun, 20 Mar 2016 00:20:43 +0000 (+0000) Subject: Visual Studio Visualizer for clang::FunctionProtoType X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c966e698d13aa6c6c0c6726af0a2d985226d907;p=clang Visual Studio Visualizer for clang::FunctionProtoType Displays return type and parameters for the Function Protoype object in the Locals window. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263890 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/clang.natvis b/utils/clang.natvis index cb7b01d2e2..0c5101215b 100644 --- a/utils/clang.natvis +++ b/utils/clang.natvis @@ -29,6 +29,7 @@ or create a symbolic link so it updates automatically. {*(clang::TemplateTypeParmType *)this} {*(clang::SubstTemplateTypeParmType *)this} {*(clang::RecordType *)this} + {*(clang::FunctionProtoType *)this} {*this,view(poly)} {*this,view(cmn)}" {*this,view(cmn)} {{{*this,view(poly)}}} @@ -44,6 +45,7 @@ or create a symbolic link so it updates automatically. (clang::TemplateTypeParmType *)this (clang::SubstTemplateTypeParmType *)this (clang::RecordType *)this + (clang::FunctionProtoType *)this @@ -132,6 +134,36 @@ or create a symbolic link so it updates automatically. *Replaced + + + + {*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)} + + , {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)} + + , {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)} + + , {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)} + + , {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)} + + , /* expand for more params */ + {ResultType,view(cpp)}({*this,view(parm0)}) + + ResultType + + {*this,view(parm0)} + + + NumParams + (clang::QualType *)(this+1) + + + + *(clang::Type *)this, view(cmn) + + typename {*TTPDecl,view(cpp)}