Apply clang-format and tweak comments
This commit is contained in:
parent
6a2495c840
commit
a30b279bad
@ -69,7 +69,6 @@
|
|||||||
# define FMT_NOINLINE
|
# define FMT_NOINLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Special definition specific to GCC only
|
|
||||||
#if FMT_GCC_VERSION
|
#if FMT_GCC_VERSION
|
||||||
# define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
|
# define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
|
||||||
#else
|
#else
|
||||||
@ -120,10 +119,10 @@ FMT_END_NAMESPACE
|
|||||||
# define FMT_THROW(x) throw x
|
# define FMT_THROW(x) throw x
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define FMT_THROW(x) \
|
# define FMT_THROW(x) \
|
||||||
do { \
|
do { \
|
||||||
static_cast<void>(x); \
|
static_cast<void>(x); \
|
||||||
FMT_ASSERT(false, ""); \
|
FMT_ASSERT(false, ""); \
|
||||||
} while (false)
|
} while (false)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@ -3205,19 +3204,18 @@ FMT_CONSTEXPR basic_string_view<Char> compile_string_to_view(
|
|||||||
return {s.data(), s.size()};
|
return {s.data(), s.size()};
|
||||||
}
|
}
|
||||||
|
|
||||||
#define FMT_STRING_IMPL(s, base) \
|
#define FMT_STRING_IMPL(s, base) \
|
||||||
[] { \
|
[] { \
|
||||||
/* Use a hidden visibility as workaround for some GCC, see */ \
|
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
|
||||||
/* https://github.com/fmtlib/fmt/issues/1973 for details */ \
|
/* Use a macro-like name to avoid shadowing warnings. */ \
|
||||||
/* Use a macro-like name to avoid shadowing warnings. */ \
|
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
|
||||||
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
|
using char_type = fmt::remove_cvref_t<decltype(s[0])>; \
|
||||||
using char_type = fmt::remove_cvref_t<decltype(s[0])>; \
|
FMT_MAYBE_UNUSED FMT_CONSTEXPR \
|
||||||
FMT_MAYBE_UNUSED FMT_CONSTEXPR \
|
operator fmt::basic_string_view<char_type>() const { \
|
||||||
operator fmt::basic_string_view<char_type>() const { \
|
return fmt::detail::compile_string_to_view<char_type>(s); \
|
||||||
return fmt::detail::compile_string_to_view<char_type>(s); \
|
} \
|
||||||
} \
|
}; \
|
||||||
}; \
|
return FMT_COMPILE_STRING(); \
|
||||||
return FMT_COMPILE_STRING(); \
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user