mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Merge branch 'natvis' of https://github.com/vinniefalco/boost-system into feature/pr-90
This commit is contained in:
@ -20,6 +20,13 @@ target_link_libraries(boost_system
|
||||
Boost::winapi
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE boost_system_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
|
||||
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_system_IDEFILES})
|
||||
if (CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
list(APPEND boost_system_IDEFILES extra/boost_system.natvis)
|
||||
endif()
|
||||
target_sources(boost_system PRIVATE ${boost_system_IDEFILES})
|
||||
|
||||
if(BUILD_TESTING)
|
||||
|
||||
add_subdirectory(test)
|
||||
|
53
extra/boost_system.natvis
Normal file
53
extra/boost_system.natvis
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
|
||||
<Type Name="boost::system::error_category">
|
||||
<DisplayString Condition="id_ == 0xb2ab117a257edfd0">[generic]</DisplayString>
|
||||
<DisplayString Condition="id_ == 0xb2ab117a257edfd1">[system]</DisplayString>
|
||||
<DisplayString Condition="id_ == 0xb2ab117a257edfd2">[interop]</DisplayString>
|
||||
<DisplayString Condition="id_ != 0">[{id_,x}]</DisplayString>
|
||||
<DisplayString>@{((uintptr_t)this),x}</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="boost::system::error_code">
|
||||
<DisplayString Condition="lc_flags_ == 0">{d1_.val_} [system] ✓</DisplayString>
|
||||
|
||||
<DisplayString Condition="lc_flags_ == 1 && ((std::error_code*)d2_)->_Mycat->_Addr==1">{((std::error_code*)d2_)->_Myval} [std:future]</DisplayString>
|
||||
<DisplayString Condition="lc_flags_ == 1 && ((std::error_code*)d2_)->_Mycat->_Addr==3">{((std::error_code*)d2_)->_Myval} [std:generic]</DisplayString>
|
||||
<DisplayString Condition="lc_flags_ == 1 && ((std::error_code*)d2_)->_Mycat->_Addr==5">{((std::error_code*)d2_)->_Myval} [std:iostream]</DisplayString>
|
||||
<DisplayString Condition="lc_flags_ == 1 && ((std::error_code*)d2_)->_Mycat->_Addr==7">{((std::error_code*)d2_)->_Myval} [std:system]</DisplayString>
|
||||
<DisplayString Condition="lc_flags_ == 1">{((std::error_code*)d2_)->_Myval} std@{((uintptr_t)((std::error_code*)d2_)->_Mycat),x}</DisplayString>
|
||||
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd0 &&
|
||||
(lc_flags_ == 2 || (lc_flags_ > 3 && ( lc_flags_ % 2 == 0 )))">{d1_.val_} [generic] ✓</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd1 &&
|
||||
(lc_flags_ == 2 || (lc_flags_ > 3 && ( lc_flags_ % 2 == 0 )))">{d1_.val_} [system] ✓</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd2 &&
|
||||
(lc_flags_ == 2 || (lc_flags_ > 3 && ( lc_flags_ % 2 == 0 )))">{d1_.val_} [interop] ✓</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ != 0 &&
|
||||
(lc_flags_ == 2 || (lc_flags_ > 3 && ( lc_flags_ % 2 == 0 )))">{d1_.val_} [{d1_.cat_->id_,x}] ✓</DisplayString>
|
||||
<DisplayString Condition=
|
||||
"lc_flags_ == 2 || (lc_flags_ > 3 && ( lc_flags_ % 2 == 0 ))">{d1_.val_} @{((uintptr_t)d1_.cat_),x} ✓</DisplayString>
|
||||
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd0 &&
|
||||
(lc_flags_ >= 3 && ( lc_flags_ % 2 == 1 ))">{d1_.val_} [generic]</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd1 &&
|
||||
(lc_flags_ >= 3 && ( lc_flags_ % 2 == 1 ))">{d1_.val_} [system]</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ == 0xb2ab117a257edfd2 &&
|
||||
(lc_flags_ >= 3 && ( lc_flags_ % 2 == 1 ))">{d1_.val_} [interop]</DisplayString>
|
||||
<DisplayString Condition="d1_.cat_->id_ != 0 &&
|
||||
(lc_flags_ >= 3 && ( lc_flags_ % 2 == 1 ))">{d1_.val_} [{d1_.cat_->id_,x}]</DisplayString>
|
||||
<DisplayString Condition=
|
||||
"lc_flags_ >= 3 && ( lc_flags_ % 2 == 1 )">{d1_.val_} @{((uintptr_t)d1_.cat_),x}</DisplayString>
|
||||
|
||||
<Expand>
|
||||
<Item Name="std::error_code" Condition="lc_flags_ == 1">(std::error_code*)d2_</Item>
|
||||
<Item Name="[location]" Condition="lc_flags_ > 3">*((boost::source_location*)(lc_flags_ & ~1))</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="boost::system::result<*,*>">
|
||||
<DisplayString>{v_}</DisplayString>
|
||||
</Type>
|
||||
|
||||
</AutoVisualizer>
|
Reference in New Issue
Block a user