Apply clang-format

This commit is contained in:
Victor Zverovich
2020-07-09 09:04:46 -07:00
parent b998e0f30b
commit 60c43e8703
7 changed files with 33 additions and 40 deletions

View File

@@ -375,8 +375,8 @@ struct check_custom {
void grow(size_t) {}
} buffer;
fmt::format_parse_context parse_ctx("");
fmt::format_context ctx{
fmt::detail::buffer_appender<char>(buffer), fmt::format_args()};
fmt::format_context ctx{fmt::detail::buffer_appender<char>(buffer),
fmt::format_args()};
h.format(parse_ctx, ctx);
EXPECT_EQ("test", std::string(buffer.data, buffer.size()));
return test_result();
@@ -386,7 +386,7 @@ struct check_custom {
TEST(ArgTest, CustomArg) {
test_struct test;
using visitor =
mock_visitor<fmt::basic_format_arg<fmt::format_context>::handle>;
mock_visitor<fmt::basic_format_arg<fmt::format_context>::handle>;
testing::StrictMock<visitor> v;
EXPECT_CALL(v, visit(_)).WillOnce(testing::Invoke(check_custom()));
fmt::visit_format_arg(v, make_arg<fmt::format_context>(test));