Split MessageInfo into its own header

This is first step towards splitting apart reporter implementation
and `catch_string.hpp`.
This commit is contained in:
Martin Hořeňovský
2020-05-10 20:20:52 +02:00
parent 7030d7740d
commit ed967fd7fc
9 changed files with 64 additions and 39 deletions
-21
View File
@@ -16,27 +16,6 @@
namespace Catch {
MessageInfo::MessageInfo( StringRef const& _macroName,
SourceLineInfo const& _lineInfo,
ResultWas::OfType _type )
: macroName( _macroName ),
lineInfo( _lineInfo ),
type( _type ),
sequence( ++globalCount )
{}
bool MessageInfo::operator==( MessageInfo const& other ) const {
return sequence == other.sequence;
}
bool MessageInfo::operator<( MessageInfo const& other ) const {
return sequence < other.sequence;
}
// This may need protecting if threading support is added
unsigned int MessageInfo::globalCount = 0;
////////////////////////////////////////////////////////////////////////////
Catch::MessageBuilder::MessageBuilder( StringRef const& macroName,