1 #include "catch_tag_alias_autoregistrar.h" 2 #include "catch_compiler_capabilities.h" 3 #include "catch_interfaces_registry_hub.h" 4 5 namespace Catch { 6 RegistrarForTagAliases(char const * alias,char const * tag,SourceLineInfo const & lineInfo)7 RegistrarForTagAliases::RegistrarForTagAliases(char const* alias, char const* tag, SourceLineInfo const& lineInfo) { 8 CATCH_TRY { 9 getMutableRegistryHub().registerTagAlias(alias, tag, lineInfo); 10 } CATCH_CATCH_ALL { 11 // Do not throw when constructing global objects, instead register the exception to be processed later 12 getMutableRegistryHub().registerStartupException(); 13 } 14 } 15 16 } 17