/
githubmirror
/
json
Обзор
Документация
Войти
/
githubmirror
/
json
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tools/generate_natvis/nlohmann_json.natvis.j2
40 строк
2 KB
Griffin Myers
Update natvis to reflect 3.11.3 and the current structure of basic_json (#4451)
05 сен 2024, 21:28
Не верифицирован
05 сен 2024, 21:28
b36f4c4
Код
Авторство
О чём код?
<?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>