"ts/webui/vscode:/vscode.git/clone" did not exist on "4ab85d3d4751e2f132c5125d835d64416a55abb9"
Commit a3a9e469 authored by Paul's avatar Paul
Browse files

Formatting

parent ab9a6dea
......@@ -149,27 +149,26 @@ void run_verify_program()
std::set_terminate(nullptr);
}
template<class T>
template <class T>
int auto_register_verify_program()
{
test::add_test_case(migraphx::get_type_name<T>(), [] { run_verify_program<T>(); });
return 0;
}
template<class T>
template <class T>
struct verify_program
{
static int static_register;
// This typedef ensures that the static member will be instantiated if
// the class itself is instantiated
using static_register_type = std::integral_constant<decltype(&static_register), &static_register>;
using static_register_type =
std::integral_constant<decltype(&static_register), &static_register>;
};
template<class T>
template <class T>
int verify_program<T>::static_register = auto_register_verify_program<T>();
struct test_literals : verify_program<test_literals>
{
migraphx::program create_program() const
......
......@@ -251,7 +251,7 @@ inline void run(int argc, const char* argv[])
#define TEST_PRIMITIVE_CAT(x, ...) x##__VA_ARGS__
// NOLINTNEXTLINE
#define TEST_CASE_REGISTER(...) \
#define TEST_CASE_REGISTER(...) \
static test::auto_register_test_case TEST_CAT(register_test_case_, __LINE__) = \
test::auto_register_test_case(#__VA_ARGS__, &__VA_ARGS__);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment