performance improvement - isTrue, isFalseTest, SourceLineInfo ctor

inlined isTrue, isFalseTest and SourceLineInfo ctor.
Further work on #1086.
Brings test from 0m25.584s to 0m20.635s
This commit is contained in:
Neal Coombes
2017-11-20 08:29:17 -06:00
parent f18366150e
commit 7732835f9a
4 changed files with 4 additions and 10 deletions

View File

@@ -15,10 +15,6 @@
namespace Catch {
SourceLineInfo::SourceLineInfo( char const* _file, std::size_t _line ) noexcept
: file( _file ),
line( _line )
{}
bool SourceLineInfo::empty() const noexcept {
return file[0] == '\0';
}
@@ -38,7 +34,6 @@ namespace Catch {
return os;
}
bool isTrue( bool value ){ return value; }
bool alwaysTrue() { return true; }
bool alwaysFalse() { return false; }