mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
cleanup natvis (#1077)
- `fail_fast`,`basic_string_span` and `basic_zstring_span` are not declared in the headers any more. - Name the exporting header file for all types in `GSL.natvis`.
This commit is contained in:
parent
c016bdc77f
commit
ac26d7bc71
35
GSL.natvis
35
GSL.natvis
@ -4,13 +4,7 @@
|
|||||||
vim: syntax=xml
|
vim: syntax=xml
|
||||||
-->
|
-->
|
||||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
<!-- These types are from the gsl_assert header. -->
|
<!-- These types are from the util header. -->
|
||||||
<Type Name="gsl::fail_fast">
|
|
||||||
<!-- na hides the address, otherwise it would appear as 0x.... "Message" -->
|
|
||||||
<DisplayString>{_Data._What,nasb}</DisplayString>
|
|
||||||
</Type>
|
|
||||||
|
|
||||||
<!-- These types are from the gsl_util header. -->
|
|
||||||
<Type Name="gsl::final_action<*>">
|
<Type Name="gsl::final_action<*>">
|
||||||
<DisplayString>{{ invoke = {invoke_}, action = {f_} }}</DisplayString>
|
<DisplayString>{{ invoke = {invoke_}, action = {f_} }}</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
@ -19,7 +13,8 @@
|
|||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name="gsl::span<*, *>">
|
<!-- These types are from the span header. -->
|
||||||
|
<Type Name="gsl::span<*, *>">
|
||||||
<DisplayString>{{ extent = {storage_.size_} }}</DisplayString>
|
<DisplayString>{{ extent = {storage_.size_} }}</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
@ -29,29 +24,7 @@
|
|||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name="gsl::basic_string_span<*, *>">
|
<!-- These types are from the pointers header. -->
|
||||||
<DisplayString>{span_.storage_.data_,[span_.storage_.size_]na}</DisplayString>
|
|
||||||
<Expand>
|
|
||||||
<Item Name="[size]">span_.storage_.size_</Item>
|
|
||||||
<ArrayItems>
|
|
||||||
<Size>span_.storage_.size_</Size>
|
|
||||||
<ValuePointer>span_.storage_.data_</ValuePointer>
|
|
||||||
</ArrayItems>
|
|
||||||
</Expand>
|
|
||||||
</Type>
|
|
||||||
|
|
||||||
<Type Name="gsl::basic_zstring_span<*, *>">
|
|
||||||
<DisplayString>{span_.storage_.data_,[span_.storage_.size_]na}</DisplayString>
|
|
||||||
<Expand>
|
|
||||||
<Item Name="[size]">span_.storage_.size_</Item>
|
|
||||||
<ArrayItems>
|
|
||||||
<Size>span_.storage_.size_</Size>
|
|
||||||
<ValuePointer>span_.storage_.data_</ValuePointer>
|
|
||||||
</ArrayItems>
|
|
||||||
</Expand>
|
|
||||||
</Type>
|
|
||||||
|
|
||||||
<!-- These types are from the gsl header. -->
|
|
||||||
<Type Name="gsl::not_null<*>">
|
<Type Name="gsl::not_null<*>">
|
||||||
<!-- We can always dereference this since it's an invariant. -->
|
<!-- We can always dereference this since it's an invariant. -->
|
||||||
<DisplayString>value = {*ptr_}</DisplayString>
|
<DisplayString>value = {*ptr_}</DisplayString>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "deathTestCommon.h"
|
#include "deathTestCommon.h"
|
||||||
#include <gsl/assert> // for fail_fast (ptr only), Ensures, Expects
|
#include <gsl/assert> // for Ensures, Expects
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
using namespace gsl;
|
using namespace gsl;
|
||||||
|
Loading…
Reference in New Issue
Block a user