Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Apr 27, 2023
1 parent 33eecbb commit 90191e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/tao/json/events/from_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ namespace tao::json::events
template< typename Consumer, template< typename... > class Traits >
void from_value( Consumer& consumer, basic_value< Traits >&& v )
{
from_value< static_cast< void ( * )( Consumer&, basic_value< Traits > && ) >( &from_value< Consumer, Traits > ), Consumer, Traits >( consumer, std::move( v ) );
from_value< static_cast< void ( * )( Consumer&, basic_value< Traits >&& ) >( &from_value< Consumer, Traits > ), Consumer, Traits >( consumer, std::move( v ) );
}

} // namespace tao::json::events
Expand Down
4 changes: 2 additions & 2 deletions include/tao/json/msgpack/events/to_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace tao::json::msgpack::events
void element() noexcept
{}

void end_array() // NOLINT(readability-convert-member-functions-to-static)
void end_array() // NOLINT(readability-convert-member-functions-to-static)
{
assert( false ); // LCOV_EXCL_LINE
}
Expand Down Expand Up @@ -196,7 +196,7 @@ namespace tao::json::msgpack::events
void member() noexcept
{}

void end_object() // NOLINT(readability-convert-member-functions-to-static)
void end_object() // NOLINT(readability-convert-member-functions-to-static)
{
assert( false ); // LCOV_EXCL_LINE
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/json/json_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace tao::json
TEST_ASSERT( custom_from_string( "\"f\177o\"" ) == value( "f\177o" ) );

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

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

0 comments on commit 90191e3

Please sign in to comment.