mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
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:
parent
8d44c2450c
commit
c5ec936a72
@ -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
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#include <catch2/catch_tag_alias.hpp>
|
|
||||||
|
|
||||||
namespace Catch {
|
|
||||||
TagAlias::TagAlias(std::string const & _tag, SourceLineInfo _lineInfo): tag(_tag), lineInfo(_lineInfo) {}
|
|
||||||
}
|
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user