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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_assertion_handler.cpp
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/internal/catch_assertion_handler.cpp
parentd59be347677feae83d352e7a4d7f04082632e9ac (diff)
downloadcatch3-devel-noexcept-funcs.tar.gz
WIP: More noexceptdevel-noexcept-funcs
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.cpp')
-rw-r--r--src/catch2/internal/catch_assertion_handler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.cpp b/src/catch2/internal/catch_assertion_handler.cpp
index e028c371..1bec6d3f 100644
--- a/src/catch2/internal/catch_assertion_handler.cpp
+++ b/src/catch2/internal/catch_assertion_handler.cpp
@@ -65,7 +65,7 @@ namespace Catch {
m_resultCapture.handleUnexpectedInflightException( m_assertionInfo, Catch::translateActiveException(), m_reaction );
}
- void AssertionHandler::handleExceptionThrownAsExpected() {
+ void AssertionHandler::handleExceptionThrownAsExpected() noexcept {
m_resultCapture.handleNonExpr(m_assertionInfo, ResultWas::Ok, m_reaction);
}
void AssertionHandler::handleExceptionNotThrownAsExpected() {
@@ -82,7 +82,7 @@ namespace Catch {
// This is the overload that takes a string and infers the Equals matcher from it
// The more general overload, that takes any string matcher, is in catch_capture_matchers.cpp
- void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str ) {
+ void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str ) noexcept {
handleExceptionMatchExpr( handler, Matchers::Equals( str ) );
}