From 74b5cdc034170ca40ae2dc1a6447c3e7a545eb35 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 11 Sep 2015 18:35:18 +0000 Subject: [PATCH] Extend the Token visualizer used by MSVC to display the identifier text for tok::identifier tokens. Patch by Mike Spertus. llvm-svn: 247442 --- clang/utils/clang.natvis | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/clang/utils/clang.natvis b/clang/utils/clang.natvis index 107af50..5917f84 100644 --- a/clang/utils/clang.natvis +++ b/clang/utils/clang.natvis @@ -24,13 +24,14 @@ or create a symbolic link so it updates automatically. *(clang::IdentifierInfo *)(Ptr & ~PtrMask) *(clang::IdentifierInfo *)(Ptr & ~PtrMask) (clang::DeclarationNameExtra::ExtraKind)((clang::DeclarationNameExtra *)(Ptr & ~PtrMask))->ExtraKindOrNumArgs - - - - {(clang::tok::TokenKind)Kind} - - - [{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}] + + + + {(clang::tok::TokenKind)Kind} + {{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}} + + + [{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}] {Name,s} -- 2.7.4