diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b467d0..762b1ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/extra/boost_system.natvis b/extra/boost_system.natvis new file mode 100644 index 0000000..10df38b --- /dev/null +++ b/extra/boost_system.natvis @@ -0,0 +1,53 @@ + + + + + [generic] + [system] + [interop] + [{id_,x}] + @{((uintptr_t)this),x} + + + + {d1_.val_} [system] ✓ + + {((std::error_code*)d2_)->_Myval} [std:future] + {((std::error_code*)d2_)->_Myval} [std:generic] + {((std::error_code*)d2_)->_Myval} [std:iostream] + {((std::error_code*)d2_)->_Myval} [std:system] + {((std::error_code*)d2_)->_Myval} std@{((uintptr_t)((std::error_code*)d2_)->_Mycat),x} + + {d1_.val_} [generic] ✓ + {d1_.val_} [system] ✓ + {d1_.val_} [interop] ✓ + {d1_.val_} [{d1_.cat_->id_,x}] ✓ + {d1_.val_} @{((uintptr_t)d1_.cat_),x} ✓ + + {d1_.val_} [generic] + {d1_.val_} [system] + {d1_.val_} [interop] + {d1_.val_} [{d1_.cat_->id_,x}] + {d1_.val_} @{((uintptr_t)d1_.cat_),x} + + + (std::error_code*)d2_ + *((boost::source_location*)(lc_flags_ & ~1)) + + + + + {v_} + + +