Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/boost/test/unit_test_suite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ typedef ::boost::unit_test::ut_detail::nil_t BOOST_AUTO_TEST_CASE_FIXTURE;
// ************** Auto registration facility helper macros ************** //
// ************************************************************************** //

#if defined(__clang__) && __clang_major__ >= 22
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc2y-extensions"
#endif

// Facility for having a unique name based on __LINE__ and __COUNTER__ (later if available)
#if defined(__COUNTER__)
#define BOOST_TEST_INTERNAL_HAS_COUNTER
Expand All @@ -364,6 +369,10 @@ typedef ::boost::unit_test::ut_detail::nil_t BOOST_AUTO_TEST_CASE_FIXTURE;
#endif
/**/

#if defined(__clang__) && __clang_major__ >= 22
# pragma clang diagnostic pop
#endif

#define BOOST_AUTO_TU_REGISTRAR( test_name ) \
static boost::unit_test::ut_detail::auto_test_unit_registrar \
BOOST_TEST_APPEND_UNIQUE_ID( BOOST_JOIN( test_name, _registrar ) ) BOOST_ATTRIBUTE_UNUSED \
Expand Down