Move LazyExpr's and MessageInfo's implementation to the combined TU

Some of the implementations were inlined instead.
This commit is contained in:
Martin Hořeňovský committed 2020-05-10 20:21:04 +02:00
1 parent 27f1756d8e
commit f64487bf70
6 files changed
+61 -61

No files matched your search

@@ -1,26 +0,0 @@
#include <catch2/internal/catch_message_info.hpp>
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;
} // end namespace Catch