mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
b36f4c477c
* Update natvis Jinja template to reflect the current structure of basic_json.
In 5a1a57510a
the underlying structure of
basic_json was altered to move m_type and m_value under an m_data field.
This updates the nativ template to be consistent with this change.
* Generate nlohmann_json.natvis for 3.11.3 and latest basic_json structure.
41 lines
2.3 KiB
Django/Jinja
41 lines
2.3 KiB
Django/Jinja
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- * * * * * * * * AUTO-GENERATED FILE * * * * * * * * -->
|
|
<!-- Edit ./tools/generate_natvis/nlohmann_json.natvis.j2 -->
|
|
<!-- * * * * * * * * AUTO-GENERATED FILE * * * * * * * * -->
|
|
|
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
|
{% for ns in namespaces %}
|
|
<!-- Namespace {{ ns }} -->
|
|
<Type Name="{{ ns }}::basic_json<*>">
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::null">null</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::object">{*(m_data.m_value.object)}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::array">{*(m_data.m_value.array)}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::string">{*(m_data.m_value.string)}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::boolean">{m_data.m_value.boolean}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::number_integer">{m_data.m_value.number_integer}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::number_unsigned">{m_data.m_value.number_unsigned}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::number_float">{m_data.m_value.number_float}</DisplayString>
|
|
<DisplayString Condition="m_data.m_type == {{ ns }}::detail::value_t::discarded">discarded</DisplayString>
|
|
<Expand>
|
|
<ExpandedItem Condition="m_data.m_type == {{ ns }}::detail::value_t::object">
|
|
*(m_data.m_value.object),view(simple)
|
|
</ExpandedItem>
|
|
<ExpandedItem Condition="m_data.m_type == {{ ns }}::detail::value_t::array">
|
|
*(m_data.m_value.array),view(simple)
|
|
</ExpandedItem>
|
|
</Expand>
|
|
</Type>
|
|
|
|
<!-- Skip the pair first/second members in the treeview while traversing a map.
|
|
Only works in VS 2015 Update 2 and beyond using the new visualization -->
|
|
<Type Name="std::pair<*, {{ ns }}::basic_json<*>>" IncludeView="MapHelper">
|
|
<DisplayString>{second}</DisplayString>
|
|
<Expand>
|
|
<ExpandedItem>second</ExpandedItem>
|
|
</Expand>
|
|
</Type>
|
|
|
|
{% endfor %}
|
|
</AutoVisualizer>
|