From 148e86fdd033be2c136743f866e3ce654fb7925a Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 28 Jun 2018 17:55:54 +0000 Subject: [PATCH] 2 VS natvis improvements. Optional was broken due to a change in the class's internals. That is fixed, and additionally a visualizer is added for Expected. llvm-svn: 335892 --- llvm/utils/LLVMVisualizers/llvm.natvis | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/llvm/utils/LLVMVisualizers/llvm.natvis b/llvm/utils/LLVMVisualizers/llvm.natvis index 439868a..e0812a0 100644 --- a/llvm/utils/LLVMVisualizers/llvm.natvis +++ b/llvm/utils/LLVMVisualizers/llvm.natvis @@ -195,10 +195,19 @@ For later versions of Visual Studio, no setup is required. - empty - {*(($T1 *)(unsigned char *)storage.buffer)} + None + {*(($T1 *)(unsigned char *)Storage.storage.buffer)} - *(($T1 *)(unsigned char *)storage.buffer) + *(($T1 *)(unsigned char *)Storage.storage.buffer) + + + + + Error + {*((storage_type *)TStorage.buffer)} + + *((storage_type *)TStorage.buffer) + *((error_type *)ErrorStorage.buffer) -- 2.7.4