[Libreoffice-commits] core.git: solenv/vs

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Sep 17 12:18:42 UTC 2018


 solenv/vs/LibreOffice.natvis |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9fb1bd0365c469d33ddecda9602258a523f80885
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Sep 17 11:47:43 2018 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Sep 17 14:18:20 2018 +0200

    Natvis: add boost::optional
    
    Change-Id: I64c5ff89bedcee0d955e4aa12035302e413d0c02
    Reviewed-on: https://gerrit.libreoffice.org/60567
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    Tested-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/solenv/vs/LibreOffice.natvis b/solenv/vs/LibreOffice.natvis
index 0a53a1161fad..409ccd5919c8 100644
--- a/solenv/vs/LibreOffice.natvis
+++ b/solenv/vs/LibreOffice.natvis
@@ -450,4 +450,12 @@
       <ExpandedItem>(SwLayoutFrame&)(*this)</ExpandedItem>
     </Expand>
   </Type>
+  <Type Name="boost::optional<*>">
+    <DisplayString Condition="!m_initialized">Optional not set</DisplayString>
+    <DisplayString>{*reinterpret_cast<$T1 *>(m_storage.dummy_.data)}</DisplayString>
+    <Expand>
+      <Item Name="initialized">m_initialized</Item>
+      <Item Name="data">*reinterpret_cast<$T1 *>(m_storage.dummy_.data)</Item>
+    </Expand>
+  </Type>
 </AutoVisualizer>


More information about the Libreoffice-commits mailing list