mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 11:23:29 +01:00
Re-inline NameAndTags constructor
This commit is contained in:
parent
09b66ccfde
commit
6ddd84a67a
@ -16,8 +16,6 @@ namespace Catch {
|
||||
return new(std::nothrow) TestInvokerAsFunction( testAsFunction );
|
||||
}
|
||||
|
||||
NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
|
||||
|
||||
AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
|
||||
CATCH_TRY {
|
||||
getMutableRegistryHub()
|
||||
|
@ -37,7 +37,9 @@ auto makeTestInvoker( void (C::*testAsMethod)() ) noexcept -> ITestInvoker* {
|
||||
}
|
||||
|
||||
struct NameAndTags {
|
||||
NameAndTags( StringRef const& name_ = StringRef(), StringRef const& tags_ = StringRef() ) noexcept;
|
||||
NameAndTags(StringRef const& name_ = StringRef(),
|
||||
StringRef const& tags_ = StringRef()) noexcept:
|
||||
name(name_), tags(tags_) {}
|
||||
StringRef name;
|
||||
StringRef tags;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user