[PATCH] D27972: Improve natvis for llvm::SmallString so that it correctly displays only the valid portion of the string
Antonio Maiorano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 17:16:02 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL290224: Improve natvis for llvm::SmallString so that it correctly displays only theā¦ (authored by amaiorano).
Changed prior to commit:
https://reviews.llvm.org/D27972?vs=82065&id=82182#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27972
Files:
llvm/trunk/utils/LLVMVisualizers/llvm.natvis
Index: llvm/trunk/utils/LLVMVisualizers/llvm.natvis
===================================================================
--- llvm/trunk/utils/LLVMVisualizers/llvm.natvis
+++ llvm/trunk/utils/LLVMVisualizers/llvm.natvis
@@ -56,8 +56,8 @@
</Expand>
</Type>
<Type Name="llvm::SmallString<*>">
- <DisplayString>{BeginX,s}</DisplayString>
- <StringView>BeginX,s</StringView>
+ <DisplayString>{(const char*)BeginX,[(char*)EndX - (char*)BeginX] na}</DisplayString>
+ <StringView>(const char*)BeginX,[(char*)EndX - (char*)BeginX]</StringView>
<Expand>
<Item Name="[size]">(char*)EndX - (char*)BeginX</Item>
<Item Name="[capacity]">(char*)CapacityX - (char*)BeginX</Item>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27972.82182.patch
Type: text/x-patch
Size: 720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161221/fcf0b55f/attachment.bin>
More information about the llvm-commits
mailing list