From 48d7a32daa9d0494a3e9d658ed829c1e34072f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Sun, 26 Nov 2017 10:31:33 +0100 Subject: [PATCH] add .natvis for MSVC debug view --- CMakeLists.txt | 9 ++++++++- src/json.natvis | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/json.natvis diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fb9f4c51..cc67e5318 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,14 @@ target_include_directories( ${NLOHMANN_JSON_TARGET_NAME} INTERFACE $ ) - + +target_sources( + ${NLOHMANN_JSON_TARGET_NAME} + INTERFACE + $ + $ +) + ## ## TESTS ## create and configure the unit test target diff --git a/src/json.natvis b/src/json.natvis new file mode 100644 index 000000000..63e3f8423 --- /dev/null +++ b/src/json.natvis @@ -0,0 +1,32 @@ + + + + null + {*(m_value.object)} + {*(m_value.array)} + {*(m_value.string)} + {m_value.boolean} + {m_value.number_integer} + {m_value.number_unsigned} + {m_value.number_float} + discarded + + + *(m_value.object),view(simple) + + + *(m_value.array),view(simple) + + + + + + + {second} + + second + + + +