|
138 | 138 | (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFuncName<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + '<' + types_list[index % num_types] + '>', Tags } ), index++)... };/* NOLINT */\
|
139 | 139 | } \
|
140 | 140 | }; \
|
141 |
| - static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \ |
| 141 | + static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \ |
142 | 142 | using TestInit = typename create<TestName, decltype(get_wrapper<INTERNAL_CATCH_REMOVE_PARENS(TmplTypes)>(Catch::Detail::priority_tag<1>{})), TypeList<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(INTERNAL_CATCH_REMOVE_PARENS(TypesList))>>::type; \
|
143 | 143 | TestInit t; \
|
144 | 144 | t.reg_tests(); \
|
|
184 | 184 | (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " INTERNAL_CATCH_STRINGIZE(TmplList) " - " + std::to_string(index), Tags } ), index++)... };/* NOLINT */\
|
185 | 185 | } \
|
186 | 186 | };\
|
187 |
| - static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \ |
| 187 | + static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \ |
188 | 188 | using TestInit = typename convert<TestName, TmplList>::type; \
|
189 | 189 | TestInit t; \
|
190 | 190 | t.reg_tests(); \
|
|
220 | 220 | (void)expander{(reg_test(Types{}, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++)... };/* NOLINT */ \
|
221 | 221 | }\
|
222 | 222 | };\
|
223 |
| - static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
| 223 | + static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
224 | 224 | TestNameClass<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(__VA_ARGS__)>();\
|
225 | 225 | return 0;\
|
226 | 226 | }();\
|
|
270 | 270 | (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + '<' + types_list[index % num_types] + '>', Tags } ), index++)... };/* NOLINT */ \
|
271 | 271 | }\
|
272 | 272 | };\
|
273 |
| - static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
| 273 | + static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
274 | 274 | using TestInit = typename create<TestNameClass, decltype(get_wrapper<INTERNAL_CATCH_REMOVE_PARENS(TmplTypes)>(Catch::Detail::priority_tag<1>{})), TypeList<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(INTERNAL_CATCH_REMOVE_PARENS(TypesList))>>::type;\
|
275 | 275 | TestInit t;\
|
276 | 276 | t.reg_tests();\
|
|
319 | 319 | (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName##_catch_sr, Catch::NameAndTags{ Name " - " INTERNAL_CATCH_STRINGIZE(TmplList) " - " + std::to_string(index), Tags } ), index++)... };/* NOLINT */ \
|
320 | 320 | }\
|
321 | 321 | };\
|
322 |
| - static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
| 322 | + static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\ |
323 | 323 | using TestInit = typename convert<TestNameClass, TmplList>::type;\
|
324 | 324 | TestInit t;\
|
325 | 325 | t.reg_tests();\
|
|
0 commit comments