summaryrefslogtreecommitdiff
path: root/solenv/vs
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-06-24 11:57:35 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-06-24 11:52:05 +0200
commit698d82ec6c582fdd4633e9e5cc9c439d4a0eff7d (patch)
treef04513e387f00e805f1aecba1b32783bb7741c21 /solenv/vs
parentfc1b9ab2913bc8c2d8414b6d8de3ceed3910c5d8 (diff)
Add a natvis entry for o3tl::span
Change-Id: I6023047e166dce0e46b24338bc60c470666aa5b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153548 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv/vs')
-rw-r--r--solenv/vs/LibreOffice.natvis10
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/vs/LibreOffice.natvis b/solenv/vs/LibreOffice.natvis
index b2732cef3736..ba0ab29ae96b 100644
--- a/solenv/vs/LibreOffice.natvis
+++ b/solenv/vs/LibreOffice.natvis
@@ -147,6 +147,16 @@
</ArrayItems>
</Expand>
</Type>
+ <Type Name="o3tl::span &lt; * &gt;">
+ <DisplayString Condition="size_ == 0">o3tl::span (empty)</DisplayString>
+ <DisplayString>o3tl::span of {size_,d} {"$T1",sb}</DisplayString>
+ <Expand>
+ <ArrayItems>
+ <Size>size_</Size>
+ <ValuePointer>reinterpret_cast &lt; const $T1 * &gt;( data_ )</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
<Type Name="BigPtrArray">
<DisplayString>{{{m_nSize,d} nodes}}</DisplayString>
<Expand>