From c51214f21ecd34dd6f0058f84d585fc2b06b4701 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 8 Aug 2018 03:03:37 +0300 Subject: Visual Studio Natvis visualization (#227) * Visual Studio Natvis visualization * Changed string format to remove separate natvis file for wide character mode * Display any node type with name and value if any of them are available --- contrib/natvis/pugixml.natvis | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 contrib/natvis/pugixml.natvis diff --git a/contrib/natvis/pugixml.natvis b/contrib/natvis/pugixml.natvis new file mode 100644 index 0000000..b756763 --- /dev/null +++ b/contrib/natvis/pugixml.natvis @@ -0,0 +1,77 @@ + + + + {_root} + none + + _root + + + + + {(pugi::xml_node_type)(header & 0xf),en} name={name,na} value={value,na} + {(pugi::xml_node_type)(header & 0xf),en} name={name,na} + {(pugi::xml_node_type)(header & 0xf),en} value={value,na} + {(pugi::xml_node_type)(header & 0xf),en} + + value,na + + + + + + + curr,view(child)na + curr = curr->next_attribute + + + + + + first_child + next_sibling + this,na + + + + + + {_attr} + none + + _attr + + + + + {name,na} = {value,na} + {value,na} + + name,na + value,na + + + + + {_node,na} "{_attribute._attr->name,na}"="{_attribute._attr->value,na}" + {_node,na} + {_attribute} + empty + + _node + _attribute + _node,na + _attribute,na + + + + + + _type + + _end - _begin + _begin + + + + \ No newline at end of file -- cgit v1.1