From 9ad3c793696f8b8d5fa8ba40cd167af1fcfa9e5e Mon Sep 17 00:00:00 2001 From: stephenberry Date: Fri, 14 Jun 2024 13:07:44 +0000 Subject: [PATCH] Committing clang-format changes --- tests/binary_test/binary_test.cpp | 5 +++-- tests/json_test/json_test.cpp | 5 +++-- tests/reflection_test/reflection_test.cpp | 15 +++++++-------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/binary_test/binary_test.cpp b/tests/binary_test/binary_test.cpp index 50efc1e46f..b2358bff5c 100644 --- a/tests/binary_test/binary_test.cpp +++ b/tests/binary_test/binary_test.cpp @@ -1708,8 +1708,9 @@ struct struct_c_arrays { uint16_t ints[2]{1, 2}; float floats[1]{3.14f}; - - struct glaze { + + struct glaze + { using T = struct_c_arrays; static constexpr auto value = glz::object(&T::ints, &T::floats); }; diff --git a/tests/json_test/json_test.cpp b/tests/json_test/json_test.cpp index 0473e25b0f..ae27422ac8 100644 --- a/tests/json_test/json_test.cpp +++ b/tests/json_test/json_test.cpp @@ -7803,8 +7803,9 @@ struct struct_c_arrays { uint16_t ints[2]{1, 2}; float floats[1]{3.14f}; - - struct glaze { + + struct glaze + { using T = struct_c_arrays; static constexpr auto value = glz::object(&T::ints, &T::floats); }; diff --git a/tests/reflection_test/reflection_test.cpp b/tests/reflection_test/reflection_test.cpp index 2494f44d1d..ae3381e7a2 100644 --- a/tests/reflection_test/reflection_test.cpp +++ b/tests/reflection_test/reflection_test.cpp @@ -693,21 +693,20 @@ namespace glz::detail { int32_t sec_count{}; read::op(sec_count, ctx, args...); - if (glz::error_code::none == ctx.error) - value = std::chrono::seconds{ sec_count }; + if (glz::error_code::none == ctx.error) value = std::chrono::seconds{sec_count}; } }; } struct chrono_data { - std::string message{}; + std::string message{}; std::chrono::seconds seconds_duration{}; }; suite custom_chrono_tests = [] { "custom_chrono"_test = [] { - constexpr std::string_view json = R"( + constexpr std::string_view json = R"( { "message": "Hello", "seconds_duration": 5458 @@ -724,10 +723,10 @@ suite custom_chrono_tests = [] { struct S1 { - int a{}; - int b{}; - std::filesystem::path fn{}; + int a{}; + int b{}; + std::filesystem::path fn{}; }; -static_assert( glz::detail::count_members == 3 ); +static_assert(glz::detail::count_members == 3); int main() { return 0; }