Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/matchers/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-09-02 20:53:47 +0200
committerMartin Hořeňovský2026-09-05 15:24:15 +0200
commitace418200064a2467441f565f74ac41cf5884150 (patch)
treee4424ad881d8cfff0dd368d99873607c18d4a637 /src/catch2/matchers/internal
parentd59be347677feae83d352e7a4d7f04082632e9ac (diff)
downloadcatch3-devel-noexcept-funcs.tar.gz
WIP: More noexceptdevel-noexcept-funcs
Diffstat (limited to 'src/catch2/matchers/internal')
-rw-r--r--src/catch2/matchers/internal/catch_matchers_impl.cpp2
-rw-r--r--src/catch2/matchers/internal/catch_matchers_impl.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/matchers/internal/catch_matchers_impl.cpp b/src/catch2/matchers/internal/catch_matchers_impl.cpp
index 41b462e5..6a524ff6 100644
--- a/src/catch2/matchers/internal/catch_matchers_impl.cpp
+++ b/src/catch2/matchers/internal/catch_matchers_impl.cpp
@@ -16,7 +16,7 @@ namespace Catch {
// This is the general overload that takes a any string matcher
// There is another overload, in catch_assertionhandler.h/.cpp, that only takes a string and infers
// the Equals matcher (so the header does not mention matchers)
- void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher ) {
+ void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher ) noexcept {
std::string exceptionMessage = Catch::translateActiveException();
MatchExpr<std::string, StringMatcher const&> expr( CATCH_MOVE(exceptionMessage), matcher );
handler.handleExpr( expr );
diff --git a/src/catch2/matchers/internal/catch_matchers_impl.hpp b/src/catch2/matchers/internal/catch_matchers_impl.hpp
index 1aa50385..87667b46 100644
--- a/src/catch2/matchers/internal/catch_matchers_impl.hpp
+++ b/src/catch2/matchers/internal/catch_matchers_impl.hpp
@@ -60,7 +60,7 @@ namespace Catch {
using StringMatcher = Matchers::MatcherBase<std::string>;
- void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher );
+ void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher ) noexcept;
template<typename ArgT, typename MatcherT>
constexpr MatchExpr<ArgT, MatcherT>