GSL.natvis 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This will make GitHub and some editors recognize this code as XML:
  4. vim: syntax=xml
  5. -->
  6. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  7. <!-- These types are from the util header. -->
  8. <Type Name="gsl::final_action&lt;*&gt;">
  9. <DisplayString>{{ invoke = {invoke_}, action = {f_} }}</DisplayString>
  10. <Expand>
  11. <Item Name="[invoke]">invoke_</Item>
  12. <Item Name="[callback]">f_</Item>
  13. </Expand>
  14. </Type>
  15. <!-- These types are from the span header. -->
  16. <Type Name="gsl::span&lt;*, *&gt;">
  17. <DisplayString>{{ extent = {storage_.size_} }}</DisplayString>
  18. <Expand>
  19. <ArrayItems>
  20. <Size>storage_.size_</Size>
  21. <ValuePointer>storage_.data_</ValuePointer>
  22. </ArrayItems>
  23. </Expand>
  24. </Type>
  25. <!-- These types are from the pointers header. -->
  26. <Type Name="gsl::not_null&lt;*&gt;">
  27. <!-- We can always dereference this since it's an invariant. -->
  28. <DisplayString>value = {*ptr_}</DisplayString>
  29. </Type>
  30. </AutoVisualizer>