Skip to content

Commit ad320d6

Browse files
committed
clang-format
1 parent ab9d785 commit ad320d6

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

include/tao/json/basic_value.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace tao::json
156156
return v;
157157
}
158158

159-
basic_value& operator=( basic_value v ) noexcept( std::is_nothrow_move_assignable_v< variant_t >&& std::is_nothrow_move_assignable_v< public_base_t > )
159+
basic_value& operator=( basic_value v ) noexcept( std::is_nothrow_move_assignable_v< variant_t > && std::is_nothrow_move_assignable_v< public_base_t > )
160160
{
161161
m_variant = std::move( v.m_variant );
162162
public_base_t::operator=( static_cast< public_base_t&& >( v ) );

include/tao/json/msgpack/events/to_stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace tao::json::msgpack::events
159159
void element() noexcept
160160
{}
161161

162-
void end_array() // NOLINT(readability-convert-member-functions-to-static)
162+
void end_array() // NOLINT(readability-convert-member-functions-to-static)
163163
{
164164
assert( false ); // LCOV_EXCL_LINE
165165
}
@@ -196,7 +196,7 @@ namespace tao::json::msgpack::events
196196
void member() noexcept
197197
{}
198198

199-
void end_object() // NOLINT(readability-convert-member-functions-to-static)
199+
void end_object() // NOLINT(readability-convert-member-functions-to-static)
200200
{
201201
assert( false ); // LCOV_EXCL_LINE
202202
}

src/test/json/json_parse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace tao::json
116116
TEST_ASSERT( custom_from_string( "\"f\177o\"" ) == value( "f\177o" ) );
117117

118118
// TODO: This is sometimes allowed to allow embedded null-bytes within a null-terminated string. (Modified UTF-8)
119-
TEST_THROWS( custom_from_string( "\"f\300\200o\"" ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding.
119+
TEST_THROWS( custom_from_string( "\"f\300\200o\"" ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding.
120120

121121
TEST_THROWS( custom_from_string( "\"f\300\201o\"" ) ); // Codepoint 0x01 as 2 byte UTF-8 - overlong encoding.
122122
TEST_THROWS( custom_from_string( "\"f\340\200\201o\"" ) ); // Codepoint 0x01 as 3 byte UTF-8 - overlong encoding.

src/test/json/make_events.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ namespace tao::json::test
234234
}
235235
{
236236
// TODO: More numbers...
237-
} {
237+
}
238+
{
238239
c.string( "" );
239240
c.element();
240241
}

0 commit comments

Comments
 (0)