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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-04-07 13:09:51 +0200
committerMartin Hořeňovský2026-04-07 14:28:11 +0200
commit3ab0d7cef3313d91e652a89870c89b0c42760f9e (patch)
tree5cd6042b65dc6cf5c524edd3a42dea99194533fc /src/catch2/interfaces
parente83218c2dfdf80fd53526fe389c0a3271696a106 (diff)
downloadcatch3-3ab0d7cef3313d91e652a89870c89b0c42760f9e.tar.gz
Turn IResultCapture::{push,pop}*Message into free functions
The thread-safety changes in assertions & messages turned the message stacks into thread-local state, instead of it being member of `RunContext`. The relevant {push,pop}(Un)ScopedMessage functions were turned from member functions into static functions, but this left `catch_message.hpp` with dependency on `IResultCapture`'s definition for the functions, and thus it still had to include `catch_interfaces_capture.hpp`. With this change, `catch_message.hpp` no longer needs `catch_interfaces_capture.hpp`.
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_capture.hpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp
index 79062cad..b67437b1 100644
--- a/src/catch2/interfaces/catch_interfaces_capture.hpp
+++ b/src/catch2/interfaces/catch_interfaces_capture.hpp
@@ -22,8 +22,6 @@ namespace Catch {
struct AssertionInfo;
struct SectionInfo;
struct SectionEndInfo;
- struct MessageInfo;
- struct MessageBuilder;
struct Counts;
struct AssertionReaction;
struct SourceLineInfo;
@@ -63,10 +61,6 @@ namespace Catch {
virtual void benchmarkEnded( BenchmarkStats<> const& stats ) = 0;
virtual void benchmarkFailed( StringRef error ) = 0;
- static void pushScopedMessage( MessageInfo&& message );
- static void popScopedMessage( unsigned int messageId );
- static void addUnscopedMessage( MessageInfo&& message );
- static void emplaceUnscopedMessage( MessageBuilder&& builder );
virtual void handleFatalErrorCondition( StringRef message ) = 0;