nlohmann_json.natvis.j2 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- * * * * * * * * AUTO-GENERATED FILE * * * * * * * * -->
  2. <!-- Edit ./tools/generate_natvis/nlohmann_json.natvis.j2 -->
  3. <!-- * * * * * * * * AUTO-GENERATED FILE * * * * * * * * -->
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  6. {% for ns in namespaces %}
  7. <!-- Namespace {{ ns }} -->
  8. <Type Name="{{ ns }}::basic_json&lt;*&gt;">
  9. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::null">null</DisplayString>
  10. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::object">{*(m_value.object)}</DisplayString>
  11. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::array">{*(m_value.array)}</DisplayString>
  12. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::string">{*(m_value.string)}</DisplayString>
  13. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::boolean">{m_value.boolean}</DisplayString>
  14. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_integer">{m_value.number_integer}</DisplayString>
  15. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_unsigned">{m_value.number_unsigned}</DisplayString>
  16. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_float">{m_value.number_float}</DisplayString>
  17. <DisplayString Condition="m_type == {{ ns }}::detail::value_t::discarded">discarded</DisplayString>
  18. <Expand>
  19. <ExpandedItem Condition="m_type == {{ ns }}::detail::value_t::object">
  20. *(m_value.object),view(simple)
  21. </ExpandedItem>
  22. <ExpandedItem Condition="m_type == {{ ns }}::detail::value_t::array">
  23. *(m_value.array),view(simple)
  24. </ExpandedItem>
  25. </Expand>
  26. </Type>
  27. <!-- Skip the pair first/second members in the treeview while traversing a map.
  28. Only works in VS 2015 Update 2 and beyond using the new visualization -->
  29. <Type Name="std::pair&lt;*, {{ ns }}::basic_json&lt;*&gt;&gt;" IncludeView="MapHelper">
  30. <DisplayString>{second}</DisplayString>
  31. <Expand>
  32. <ExpandedItem>second</ExpandedItem>
  33. </Expand>
  34. </Type>
  35. {% endfor %}
  36. </AutoVisualizer>