Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jun 14, 2024
1 parent 6403977 commit 9ad3c79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions tests/binary_test/binary_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
5 changes: 3 additions & 2 deletions tests/json_test/json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
15 changes: 7 additions & 8 deletions tests/reflection_test/reflection_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,21 +693,20 @@ namespace glz::detail
{
int32_t sec_count{};
read<json>::op<Opts>(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
Expand All @@ -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<S1> == 3 );
static_assert(glz::detail::count_members<S1> == 3);

int main() { return 0; }

0 comments on commit 9ad3c79

Please sign in to comment.