-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.natvis
127 lines (113 loc) · 4.69 KB
/
base.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="base::MemorySpan">
<DisplayString>{{ size={end - begin} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>end - begin</Size>
<ValuePointer>begin</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="base::Span<*>">
<DisplayString>{{ size={size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>size</Size>
<ValuePointer>buffer</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="base::ConstSpan<*>">
<DisplayString>{{ size={size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>size</Size>
<ValuePointer>buffer</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="base::DynamicObject">
<DisplayString Condition="valid == 2407361369">{{ VALID }}</DisplayString>
<DisplayString Condition="valid != 2407361369">{{ BAD }}</DisplayString>
</Type>
<Type Name="base::ReferenceCountedObject">
</Type>
<Type Name="base::Reference<*>">
<DisplayString Condition="value == 0">nullptr</DisplayString>
<DisplayString Condition="value != 0">{{ {*value} }}</DisplayString>
<Expand>
<Item Condition="value != 0" Name="[value]">value</Item>
</Expand>
</Type>
<Type Name="base::String">
<DisplayString>{{ text={elements.value->elements} length={elements.value->size - 1} }}</DisplayString>
</Type>
<Type Name="base::WideString">
<DisplayString>{{ text={elements.value->elements} length={elements.value->size - 1} }}</DisplayString>
</Type>
<Type Name="base::AnyValue">
<DisplayString Condition="representation == VOID">{{ VOID }}</DisplayString>
<DisplayString Condition="representation == TYPE">{type}</DisplayString>
<DisplayString Condition="representation == POINTER">{p}</DisplayString>
<DisplayString Condition="representation == CHARACTER">{character}</DisplayString>
<DisplayString Condition="representation == WIDE_CHARACTER">{wideCharacter}</DisplayString>
<DisplayString Condition="representation == BOOLEAN">{boolean}</DisplayString>
<DisplayString Condition="representation == SHORT_INTEGER">{shortInteger}</DisplayString>
<DisplayString Condition="representation == UNSIGNED_SHORT_INTEGER">{unsignedShortInteger}</DisplayString>
<DisplayString Condition="representation == INTEGER">{integer}</DisplayString>
<DisplayString Condition="representation == UNSIGNED_INTEGER">{unsignedInteger}</DisplayString>
<DisplayString Condition="representation == LONG_INTEGER">{longInteger}</DisplayString>
<DisplayString Condition="representation == UNSIGNED_LONG_INTEGER">{unsignedLongInteger}</DisplayString>
<DisplayString Condition="representation == LONG_LONG_INTEGER">{longLongInteger}</DisplayString>
<DisplayString Condition="representation == UNSIGNED_LONG_LONG_INTEGER">{unsignedLongLongInteger}</DisplayString>
<DisplayString Condition="representation == FLOAT">{f}</DisplayString>
<DisplayString Condition="representation == DOUBLE">{d}</DisplayString>
<DisplayString Condition="representation == LONG_DOUBLE">{ld}</DisplayString>
<DisplayString Condition="representation == STRING">{string}</DisplayString>
<DisplayString Condition="representation == WIDE_STRING">{wideString}</DisplayString>
<DisplayString Condition="representation == REFERENCE">{reference}</DisplayString>
</Type>
<Type Name="base::Pair<*,*>">
<Expand>
<Item Name="[first]">first</Item>
<Item Name="[second]">second</Item>
</Expand>
</Type>
<Type Name="base::Allocator<*>">
<DisplayString>{{ size={size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>size</Size>
<ValuePointer>elements</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="base::Array<*>">
<DisplayString>{{ size={elements.value->size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>elements.value->size</Size>
<ValuePointer>elements.value->elements</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="base::List<*>">
<DisplayString>{{ size={elements.value->size} }}</DisplayString>
<Expand>
<LinkedListItems>
<Size>elements.value->size</Size>
<HeadPointer>elements.value->first</HeadPointer>
<NextPointer>next</NextPointer>
<ValueNode>value</ValueNode>
</LinkedListItems>
</Expand>
</Type>
<Type Name="base::Map<*,*>">
<DisplayString>{{ size={size} }}</DisplayString>
<!-- DEFINE -->
</Type>
<Type Name="base::UnitTest">
<DisplayString>{{ name={name} }}</DisplayString>
</Type>
</AutoVisualizer>