From 2b60a2c0ba79b64dea5bcae4fb76505b31f9994f Mon Sep 17 00:00:00 2001 From: Mike Spertus Date: Mon, 13 Jun 2016 04:02:35 +0000 Subject: [PATCH] Improved Visual Studio visualization of OpaquePtr Create a special visualizer for OpaquePtr because the standard visualizer doesn't work with OpaquePtr due to QualType being heavily dependent on traits to be pointer-like. Also, created an identical visualizer for UnionOpaquePtr git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272531 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ClangVisualizers/clang.natvis | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/utils/ClangVisualizers/clang.natvis b/utils/ClangVisualizers/clang.natvis index 83c00b247c..6e3ca96ffd 100644 --- a/utils/ClangVisualizers/clang.natvis +++ b/utils/ClangVisualizers/clang.natvis @@ -485,12 +485,30 @@ 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} ($T1 *)Ptr + + {($T1 *)Ptr} + + ($T1 *)Ptr + + {*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)} -- 2.40.0