diff options
| author | Martin Hořeňovský | 2021-08-13 14:16:30 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-16 16:22:19 +0200 |
| commit | d2ee7100d26128b3956571cc802f3a52c9b9aea8 (patch) | |
| tree | 84845c4a6bbc080c40cdd37ca373b1832aa84159 /src/catch2/internal/catch_test_spec_parser.cpp | |
| parent | 03ce304102829d438a0e3249b86094a6da802dfa (diff) | |
| download | catch3-d2ee7100d26128b3956571cc802f3a52c9b9aea8.tar.gz | |
Replace uses of std::move and std::forward with macros
This improves the SelfTest build times by about 3% (measured
with Clang 10 on random Linux box I had lying around).
Diffstat (limited to 'src/catch2/internal/catch_test_spec_parser.cpp')
| -rw-r--r-- | src/catch2/internal/catch_test_spec_parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_test_spec_parser.cpp b/src/catch2/internal/catch_test_spec_parser.cpp index e9d77e74..86b25bfa 100644 --- a/src/catch2/internal/catch_test_spec_parser.cpp +++ b/src/catch2/internal/catch_test_spec_parser.cpp @@ -9,6 +9,7 @@ #include <catch2/internal/catch_string_manip.hpp> #include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp> +#include <catch2/internal/catch_move_and_forward.hpp> namespace Catch { @@ -35,7 +36,7 @@ namespace Catch { } TestSpec TestSpecParser::testSpec() { addFilter(); - return std::move(m_testSpec); + return CATCH_MOVE(m_testSpec); } bool TestSpecParser::visitChar( char c ) { if( (m_mode != EscapedName) && (c == '\\') ) { @@ -151,7 +152,7 @@ namespace Catch { void TestSpecParser::addFilter() { if( !m_currentFilter.m_required.empty() || !m_currentFilter.m_forbidden.empty() ) { - m_testSpec.m_filters.push_back( std::move(m_currentFilter) ); + m_testSpec.m_filters.push_back( CATCH_MOVE(m_currentFilter) ); m_currentFilter = TestSpec::Filter(); } } |