summaryrefslogtreecommitdiff
path: root/solenv/vs
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-07-12 07:42:36 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-07-12 07:44:59 +0200
commit295c3eb9f86b6928f82d79c6705daa2e0f61b5a4 (patch)
treef921367e29773bd3a106331449485813f28c646c /solenv/vs
parent6fd9987ae650bb2f0dd40aec95662a75c9a85598 (diff)
Natvis: improve ErrCode visualizer
Change-Id: I5046a2642e2167495ea7efa0fd1b04f5e2163657 Reviewed-on: https://gerrit.libreoffice.org/75464 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv/vs')
-rw-r--r--solenv/vs/LibreOffice.natvis7
1 files changed, 6 insertions, 1 deletions
diff --git a/solenv/vs/LibreOffice.natvis b/solenv/vs/LibreOffice.natvis
index a9b9f561b791..549d5c96c9c7 100644
--- a/solenv/vs/LibreOffice.natvis
+++ b/solenv/vs/LibreOffice.natvis
@@ -469,6 +469,11 @@
</Expand>
</Type>
<Type Name="ErrCode">
- <DisplayString>Area: {static_cast&lt;ErrCodeArea&gt;((m_value >> 13) &amp; 0x01fff),en}, class: {static_cast&lt;ErrCodeClass&gt;((m_value >> 8) &amp; 0x1f),en}, code: {m_value &amp; 0xff}</DisplayString>
+ <DisplayString Condition="m_value == 0">None</DisplayString>
+ <DisplayString IncludeView="dynamic" Condition="m_value &amp; (31UL &lt;&lt; 26)">dynamic: {(m_value >> 26) &amp; 31UL} </DisplayString>
+ <DisplayString IncludeView="dynamic"/>
+ <DisplayString IncludeView="detail">{{{*this,view(dynamic)}area: {static_cast&lt;ErrCodeArea>((m_value >> 13) &amp; 0x01fff),en}, class: {static_cast&lt;ErrCodeClass>((m_value >> 8) &amp; 0x1f),en}, code: {m_value &amp; 0xff}}}</DisplayString>
+ <DisplayString Condition="m_value &amp; 0x80000000UL">Warning: {*this,view(detail)}</DisplayString>
+ <DisplayString>Error: {*this,view(detail)}</DisplayString>
</Type>
</AutoVisualizer>