-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoe_lib3.natvis
40 lines (39 loc) · 1.68 KB
/
oe_lib3.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="oel::debug::dynarray<*>">
<DisplayString Condition="_m.end == _m.data">{{size=0 }}</DisplayString>
<DisplayString>{{size={_m.end - _m.data} back={_m.end[-1]}}}</DisplayString>
<Expand>
<Item Name="[capacity]" ExcludeView="simple">_m.reservEnd - _m.data</Item>
<Item Name="[allocator]" ExcludeView="simple">($T2 &)_m</Item>
<Item Name="[mem header]" ExcludeView="simple" Condition="_m.data">
((oel::_detail::DebugAllocationHeader *)_m.data)[-1]
</Item>
<ArrayItems>
<Size>_m.end - _m.data</Size>
<ValuePointer>_m.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="oel::dynarray<*>">
<DisplayString Condition="_m.end == _m.data">{{size=0 }}</DisplayString>
<DisplayString>{{size={_m.end - _m.data} back={_m.end[-1]}}}</DisplayString>
<Expand>
<Item Name="[capacity]" ExcludeView="simple">_m.reservEnd - _m.data</Item>
<Item Name="[allocator]" ExcludeView="simple">($T2 &)_m</Item>
<ArrayItems>
<Size>_m.end - _m.data</Size>
<ValuePointer>_m.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="oel::debug::dynarray_iterator<*>">
<DisplayString Condition="!_pElem">no allocation</DisplayString>
<DisplayString Condition="_header->id != _allocationId">invalidated</DisplayString>
<DisplayString Condition="_pElem - ($T1)(_header + 1) == _header->nObjects">end</DisplayString>
<DisplayString>[{_pElem - ($T1)(_header + 1)}] {*_pElem}</DisplayString>
<Expand>
<Item Name="[array size]">_header->nObjects</Item>
</Expand>
</Type>
</AutoVisualizer>