Skip to content

Commit

Permalink
natvis: meta custom views
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jul 30, 2024
1 parent 11e6b65 commit ebd077f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion natvis/entt/meta.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
<Item Name="[arity]">arity</Item>
</Expand>
</Type>
<Type Name="entt::internal::meta_custom_node">
<DisplayString Condition="value != nullptr">{{ type={ type } }}</DisplayString>
<DisplayString>{{}}</DisplayString>
<Expand>
<Item Name="[type]">type</Item>
<ExpandedItem>value</ExpandedItem>
</Expand>
</Type>
<Type Name="entt::internal::meta_data_node">
<Intrinsic Name="has_trait" Expression="!!(traits &amp; property)">
<Parameter Name="property" Type="int"/>
Expand All @@ -26,6 +34,7 @@
<Item Name="[arity]">arity</Item>
<Item Name="[is_const]">has_trait(entt::internal::meta_traits::is_const)</Item>
<Item Name="[is_static]">has_trait(entt::internal::meta_traits::is_static)</Item>
<Item Name="[custom]" Condition="custom.value != nullptr">custom</Item>
<Synthetic Name="[prop]">
<DisplayString>{ prop.size() }</DisplayString>
<Expand>
Expand Down Expand Up @@ -54,6 +63,7 @@
<Item Name="[is_const]">has_trait(entt::internal::meta_traits::is_const)</Item>
<Item Name="[is_static]">has_trait(entt::internal::meta_traits::is_static)</Item>
<Item Name="[next]" Condition="next != nullptr">*next</Item>
<Item Name="[custom]" Condition="custom.value != nullptr">custom</Item>
<Synthetic Name="[prop]">
<DisplayString>{ prop.size() }</DisplayString>
<Expand>
Expand All @@ -72,7 +82,9 @@
</Type>
<Type Name="entt::internal::meta_prop_node">
<DisplayString>{ value }</DisplayString>
<Expand/>
<Expand>
<ExpandedItem>value</ExpandedItem>
</Expand>
</Type>
<Type Name="entt::internal::meta_template_node">
<DisplayString>{{ arity={ arity } }}</DisplayString>
Expand Down Expand Up @@ -210,6 +222,7 @@
<Item Name="[conversion_helper]">conversion_helper != nullptr</Item>
<Item Name="[from_void]">from_void != nullptr</Item>
<Item Name="[template_info]" Condition="templ.arity != 0u">templ</Item>
<Item Name="[custom]" Condition="custom.value != nullptr">custom</Item>
<Item Name="[details]" Condition="details != nullptr">*details</Item>
</Expand>
</Type>
Expand Down

0 comments on commit ebd077f

Please sign in to comment.