Apply clang-format

This commit is contained in:
Victor Zverovich
2019-12-21 13:10:45 -08:00
parent 74532c23a3
commit 8cf4c52068
8 changed files with 45 additions and 41 deletions
+6 -5
View File
@@ -457,7 +457,8 @@ TEST(CoreTest, HasFormatter) {
using context = fmt::format_context;
static_assert(has_formatter<enabled_formatter, context>::value, "");
static_assert(!has_formatter<disabled_formatter, context>::value, "");
static_assert(!has_formatter<disabled_formatter_convertible, context>::value, "");
static_assert(!has_formatter<disabled_formatter_convertible, context>::value,
"");
}
struct convertible_to_int {
@@ -616,7 +617,7 @@ TEST(FormatterTest, FormatExplicitlyConvertibleToStringView) {
EXPECT_EQ("foo", fmt::format("{}", explicitly_convertible_to_string_view()));
}
#ifdef FMT_USE_STRING_VIEW
# ifdef FMT_USE_STRING_VIEW
struct explicitly_convertible_to_std_string_view {
explicit operator std::string_view() const { return "foo"; }
};
@@ -625,7 +626,7 @@ TEST(FormatterTest, FormatExplicitlyConvertibleToStdStringView) {
EXPECT_EQ("foo",
fmt::format("{}", explicitly_convertible_to_std_string_view()));
}
#endif
# endif
struct explicitly_convertible_to_wstring_view {
explicit operator fmt::wstring_view() const { return L"foo"; }
@@ -639,9 +640,9 @@ TEST(FormatterTest, FormatExplicitlyConvertibleToWStringView) {
struct disabled_rvalue_conversion {
operator const char*() const& { return "foo"; }
operator const char*()& { return "foo"; }
operator const char*() & { return "foo"; }
operator const char*() const&& = delete;
operator const char*()&& = delete;
operator const char*() && = delete;
};
TEST(FormatterTest, DisabledRValueConversion) {