-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathslang.natvis
52 lines (52 loc) · 2.38 KB
/
slang.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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="boost::unordered::unordered_flat_map<*>">
<Intrinsic Name="sz" Expression="table_.size_"/>
<DisplayString Condition="sz() == 0">empty</DisplayString>
<DisplayString>{{ size={sz()} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">sz()</Item>
<CustomListItems MaxItemsPerView="1024">
<Variable Name="p" InitialValue="table_.arrays.elements" />
<Variable Name="pg" InitialValue="table_.arrays.groups" />
<Variable Name="n" InitialValue="0" />
<Size>sz()</Size>
<Loop>
<If Condition="n==15">
<Break Condition="reinterpret_cast<const unsigned char*>(&pg->m)[n] == 1"/>
<Exec>n=0</Exec>
<Exec>pg++</Exec>
</If>
<Else>
<If Condition="reinterpret_cast<const unsigned char*>(&pg->m)[n] > 1">
<Item>*p</Item>
</If>
<Exec>n++</Exec>
<Exec>p++</Exec>
</Else>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="slang::real_t">
<DisplayString>{v}</DisplayString>
</Type>
<Type Name="slang::shortreal_t">
<DisplayString>{v}</DisplayString>
</Type>
<Type Name="slang::ConstantValue">
<DisplayString>{value}</DisplayString>
</Type>
<Type Name="slang::ConstantValue::NullPlaceholder">
<DisplayString>null</DisplayString>
</Type>
<Type Name="slang::ConstantValue::UnboundedPlaceholder">
<DisplayString>$</DisplayString>
</Type>
<Type Name="slang::SVInt">
<DisplayString Condition="bitWidth <= BITS_PER_WORD && !unknownFlag && signFlag">{bitWidth}'sd{val}</DisplayString>
<DisplayString Condition="bitWidth <= BITS_PER_WORD && !unknownFlag && !signFlag">{bitWidth}'d{val}</DisplayString>
<DisplayString Condition="unknownFlag"><unknown bits></DisplayString>
<DisplayString>{{bits={bitWidth} signed={signFlag}}}</DisplayString>
</Type>
</AutoVisualizer>