From 89073db6d26bb431489f9b660f2173e686913982 Mon Sep 17 00:00:00 2001 From: Mike Spertus Date: Thu, 3 Jan 2019 23:24:39 +0000 Subject: [PATCH] Fix MSVC visualizations for ActionResult and OpaquePtr Mainly just fixing buggy code. Also removed unnecessary visualizers for specializations of OpaquePtr llvm-svn: 350371 --- clang/utils/ClangVisualizers/clang.natvis | 40 +++++------------------ 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/clang/utils/ClangVisualizers/clang.natvis b/clang/utils/ClangVisualizers/clang.natvis index 7ddcb5db5fa2..24c4715cca64 100644 --- a/clang/utils/ClangVisualizers/clang.natvis +++ b/clang/utils/ClangVisualizers/clang.natvis @@ -492,18 +492,6 @@ For later versions of Visual Studio, no setup is required--> *(clang::Type *)this, view(cmn) - - {*(clang::QualType *)this} - - *(clang::QualType *)this - - - - {*(clang::QualType *)this} - - *(clang::QualType *)this - - {($T1 *)Ptr} @@ -568,30 +556,18 @@ For later versions of Visual Studio, no setup is required--> {Ambiguity,en}: {Decls} {ResultKind,en}: {Decls} - - Invalid - Valid - - + Invalid - Valid + Unset + {Val} - - {*this,view(packedValidity)}: {($T1 *)(PtrWithInvalid&~1)} + + Invalid + Unset + {($T1)(PtrWithInvalid&~1)} (bool)(PtrWithInvalid&1) - ($T1 *)(PtrWithInvalid&~1) - - - - {*this,view(unpackedValidity)}: {Val} - - - {*this,view(packed)} - {*this,view(unpacked)} - - *this,view(packed) - *this,view(unpacked) + ($T1)(PtrWithInvalid&~1)