Skip to content

Commit

Permalink
fixup! fix/suppress misc clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mjerabek committed Feb 25, 2024
1 parent 6e8ab59 commit b984a7b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/SelfTest/UsageTests/Matchers.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b984a7b

Please sign in to comment.