Inline TagAlias constructor

It is trivial enough that the function call is not worth it, and
lets us remove one TU from compilation.
This commit is contained in:
Martin Hořeňovský 2020-04-24 21:09:06 +02:00
parent 8d44c2450c
commit c5ec936a72
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
3 changed files with 4 additions and 7 deletions

View File

@ -175,7 +175,6 @@ set(IMPL_SOURCES
${SOURCES_DIR}/internal/catch_stream.cpp ${SOURCES_DIR}/internal/catch_stream.cpp
${SOURCES_DIR}/internal/catch_stringref.cpp ${SOURCES_DIR}/internal/catch_stringref.cpp
${SOURCES_DIR}/internal/catch_string_manip.cpp ${SOURCES_DIR}/internal/catch_string_manip.cpp
${SOURCES_DIR}/catch_tag_alias.cpp
${SOURCES_DIR}/catch_tag_alias_autoregistrar.cpp ${SOURCES_DIR}/catch_tag_alias_autoregistrar.cpp
${SOURCES_DIR}/internal/catch_tag_alias_registry.cpp ${SOURCES_DIR}/internal/catch_tag_alias_registry.cpp
${SOURCES_DIR}/catch_test_case_info.cpp ${SOURCES_DIR}/catch_test_case_info.cpp

View File

@ -1,5 +0,0 @@
#include <catch2/catch_tag_alias.hpp>
namespace Catch {
TagAlias::TagAlias(std::string const & _tag, SourceLineInfo _lineInfo): tag(_tag), lineInfo(_lineInfo) {}
}

View File

@ -15,7 +15,10 @@
namespace Catch { namespace Catch {
struct TagAlias { struct TagAlias {
TagAlias(std::string const& _tag, SourceLineInfo _lineInfo); TagAlias(std::string const& _tag, SourceLineInfo _lineInfo):
tag(_tag),
lineInfo(_lineInfo)
{}
std::string tag; std::string tag;
SourceLineInfo lineInfo; SourceLineInfo lineInfo;