Skip to content

Commit

Permalink
Updated natvis file (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
fktn-k authored Sep 26, 2024
1 parent a1f2915 commit 2ac58a8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
64 changes: 32 additions & 32 deletions fkYAML.natvis
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- This is a auto-generated file. -->
<!-- Edit ./tools/natvis_generator/fkYAML.natvis.j2 -->

<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Namespace fkyaml::v0_3_12 -->
<Type Name="fkyaml::v0_3_12::basic_node&lt;*&gt;">
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::SEQUENCE">{*(m_node_value.p_sequence)}</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::MAPPING">{*(m_node_value.p_mapping)}</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::NULL_OBJECT">nullptr</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::BOOLEAN">{m_node_value.boolean}</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::INTEGER">{m_node_value.integer}</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::FLOAT_NUMBER">{m_node_value.float_val}</DisplayString>
<DisplayString Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::STRING">{*(m_node_value.p_string)}</DisplayString>
<Expand>
<ExpandedItem Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::SEQUENCE">
*(m_node_value.p_sequence),view(simple)
</ExpandedItem>
<ExpandedItem Condition="m_node_type == fkyaml::v0_3_12::detail::node_t::MAPPING">
*(m_node_value.p_mapping),view(simple)
</ExpandedItem>
</Expand>
</Type>

<Type Name="std::pair&lt;*, fkyaml::v0_3_12::basic_node&lt;*&gt;&gt;" IncludeView="MapHelper">
<DisplayString>{second}</DisplayString>
<Expand>
<ExpandedItem>second</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>
<?xml version="1.0" encoding="utf-8"?>

<!-- This is a auto-generated file. -->
<!-- Edit ./tools/natvis_generator/fkYAML.natvis.j2 -->

<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Namespace fkyaml::v0_3_12 -->
<Type Name="fkyaml::v0_3_12::basic_node&lt;*&gt;">
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::seq_bit">{*(m_node_value.p_sequence)}</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::map_bit">{*(m_node_value.p_mapping)}</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::null_bit">nullptr</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::bool_bit">{m_node_value.boolean}</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::int_bit">{m_node_value.integer}</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::float_bit">{m_node_value.float_val}</DisplayString>
<DisplayString Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::string_bit">{*(m_node_value.p_string)}</DisplayString>
<Expand>
<ExpandedItem Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::seq_bit">
*(m_node_value.p_sequence),view(simple)
</ExpandedItem>
<ExpandedItem Condition="m_attrs &amp; fkyaml::v0_3_12::detail::node_attr_bits::map_bit">
*(m_node_value.p_mapping),view(simple)
</ExpandedItem>
</Expand>
</Type>

<Type Name="std::pair&lt;*, fkyaml::v0_3_12::basic_node&lt;*&gt;&gt;" IncludeView="MapHelper">
<DisplayString>{second}</DisplayString>
<Expand>
<ExpandedItem>second</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>
18 changes: 9 additions & 9 deletions tool/natvis_generator/fkYAML.natvis.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Namespace {{ namespace }} -->
<Type Name="{{ namespace }}::basic_node&lt;*&gt;">
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::SEQUENCE">{*(m_node_value.p_sequence)}</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::MAPPING">{*(m_node_value.p_mapping)}</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::NULL_OBJECT">nullptr</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::BOOLEAN">{m_node_value.boolean}</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::INTEGER">{m_node_value.integer}</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::FLOAT_NUMBER">{m_node_value.float_val}</DisplayString>
<DisplayString Condition="m_node_type == {{ namespace }}::detail::node_t::STRING">{*(m_node_value.p_string)}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::seq_bit">{*(m_node_value.p_sequence)}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::map_bit">{*(m_node_value.p_mapping)}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::null_bit">nullptr</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::bool_bit">{m_node_value.boolean}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::int_bit">{m_node_value.integer}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::float_bit">{m_node_value.float_val}</DisplayString>
<DisplayString Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::string_bit">{*(m_node_value.p_string)}</DisplayString>
<Expand>
<ExpandedItem Condition="m_node_type == {{ namespace }}::detail::node_t::SEQUENCE">
<ExpandedItem Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::seq_bit">
*(m_node_value.p_sequence),view(simple)
</ExpandedItem>
<ExpandedItem Condition="m_node_type == {{ namespace }}::detail::node_t::MAPPING">
<ExpandedItem Condition="m_attrs &amp; {{ namespace }}::detail::node_attr_bits::map_bit">
*(m_node_value.p_mapping),view(simple)
</ExpandedItem>
</Expand>
Expand Down

0 comments on commit 2ac58a8

Please sign in to comment.