diff --git a/tests/SelfTest/UsageTests/Matchers.tests.cpp b/tests/SelfTest/UsageTests/Matchers.tests.cpp index 59fbc6453c..77b9a376f8 100644 --- a/tests/SelfTest/UsageTests/Matchers.tests.cpp +++ b/tests/SelfTest/UsageTests/Matchers.tests.cpp @@ -1078,14 +1078,19 @@ struct MatcherWasMovedOrCopied : std::exception { struct ThrowOnCopyOrMoveMatcher : Catch::Matchers::MatcherGenericBase { ThrowOnCopyOrMoveMatcher() = default; + + // NOLINTBEGIN(readability-redundant-member-init) // NOLINTNEXTLINE(bugprone-copy-constructor-init) - [[noreturn]] ThrowOnCopyOrMoveMatcher( ThrowOnCopyOrMoveMatcher const& ) { + [[noreturn]] ThrowOnCopyOrMoveMatcher( ThrowOnCopyOrMoveMatcher const& ): + Catch::Matchers::MatcherGenericBase() { throw MatcherWasMovedOrCopied(); } // NOLINTNEXTLINE(performance-noexcept-move-constructor) - [[noreturn]] ThrowOnCopyOrMoveMatcher( ThrowOnCopyOrMoveMatcher&& ) { + [[noreturn]] ThrowOnCopyOrMoveMatcher( ThrowOnCopyOrMoveMatcher&& ): + Catch::Matchers::MatcherGenericBase() { throw MatcherWasMovedOrCopied(); } + // NOLINTEND(readability-redundant-member-init) ThrowOnCopyOrMoveMatcher& operator=( ThrowOnCopyOrMoveMatcher const& ) { throw MatcherWasMovedOrCopied(); }