From 8fe947b2fbbdaa747fb7acc7624d9290bba52086 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 3 Nov 2017 09:42:44 -0400 Subject: Update natvis file for better viewing of RefPtr, DeclRef and Name classes --- source/core/core.natvis | 2 +- source/slang/slang.natvis | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/core/core.natvis b/source/core/core.natvis index 3d9ac702e..91fdbb49b 100644 --- a/source/core/core.natvis +++ b/source/core/core.natvis @@ -54,7 +54,7 @@ - + pointer empty RefPtr {*pointer} diff --git a/source/slang/slang.natvis b/source/slang/slang.natvis index 7a7f7fe0e..7e6fd3753 100644 --- a/source/slang/slang.natvis +++ b/source/slang/slang.natvis @@ -9,5 +9,30 @@ rawVal ? ($T1*)((char*)this + rawVal) : ($T1*)0 - + + decl ? ($T1*)(decl) : ($T1*)0 + DeclRef nullptr + DeclRef {(*(*(Slang::DeclRefBase*)this).decl).nameAndLoc} + + decl ? ($T1*)(decl) : ($T1*)0 + "=========================" + + substitutions.pointer + outer.pointer + this + + + + + DeclRefType {declRef} + + declRef + + + + {{name={(char*)(text.buffer.pointer+1), s}}} + + + {{name={(char*)((*name).text.buffer.pointer+1), s} loc={loc.raw}}} + \ No newline at end of file -- cgit v1.2.3