From a9bcfc16cf2056dcc3d29de387bf6ace4587621b Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 26 Jun 2014 16:26:42 +0000 Subject: [PATCH] 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 --- utils/clang.natvis | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) 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 + + -- 2.40.0