From: Zachary Turner Date: Thu, 26 Jun 2014 16:26:42 +0000 (+0000) Subject: Add a Visualizer for VarDecl. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9bcfc16cf2056dcc3d29de387bf6ace4587621b;p=clang Add a Visualizer for VarDecl. Reviewed by: Aaron Ballman Differential Revision: http://reviews.llvm.org/D4303 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211788 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/clang.natvis b/utils/clang.natvis index 1f956f1977..107af502f7 100644 --- a/utils/clang.natvis +++ b/utils/clang.natvis @@ -15,14 +15,14 @@ or create a symbolic link so it updates automatically. Empty - {{Identifier ({(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} - {{ObjC Zero Arg Selector ({(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} - {{ObjC One Arg Selector ({(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} + {{Identifier ({*(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} + {{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} + {{ObjC One Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}} {{Extra ({(clang::DeclarationNameExtra::ExtraKind)((clang::DeclarationNameExtra *)(Ptr & ~PtrMask))->ExtraKindOrNumArgs})}} - (clang::IdentifierInfo *)(Ptr & ~PtrMask) - (clang::IdentifierInfo *)(Ptr & ~PtrMask) - (clang::IdentifierInfo *)(Ptr & ~PtrMask) + *(clang::IdentifierInfo *)(Ptr & ~PtrMask) + *(clang::IdentifierInfo *)(Ptr & ~PtrMask) + *(clang::IdentifierInfo *)(Ptr & ~PtrMask) (clang::DeclarationNameExtra::ExtraKind)((clang::DeclarationNameExtra *)(Ptr & ~PtrMask))->ExtraKindOrNumArgs @@ -41,4 +41,19 @@ or create a symbolic link so it updates automatically. {Name,s} + + + (clang::StorageClass)SClass + (clang::ThreadStorageClassSpecifier)TSCSpec + (clang::VarDecl::InitializationStyle)InitStyle + + + + {Name} + + *(DeclaratorDecl*)this,nd + VarDeclBits + ParmVarDeclBits + +