mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Tweak a comment and apply clang-format
This commit is contained in:
@ -2029,23 +2029,22 @@ template <typename Context> class basic_format_args {
|
|||||||
// between clang and gcc on ARM (#1919).
|
// between clang and gcc on ARM (#1919).
|
||||||
using format_args = basic_format_args<format_context>;
|
using format_args = basic_format_args<format_context>;
|
||||||
|
|
||||||
// We cannot use enum classes as bit fields because of a gcc bug,
|
// We cannot use enum classes as bit fields because of a gcc bug, so we put them
|
||||||
// so we put them in namespaces instead.
|
// in namespaces instead (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414).
|
||||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.
|
|
||||||
// Additionally, if an underlying type is specified, older gcc incorrectly warns
|
// Additionally, if an underlying type is specified, older gcc incorrectly warns
|
||||||
// that the type is too small for all the enum values.
|
// that the type is too small. Both bugs are fixed in gcc 9.3.
|
||||||
// Both these bugs are fixed as of gcc 9.3.
|
|
||||||
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 903
|
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 903
|
||||||
# define FMT_ENUM_UNDERLYING_TYPE(type)
|
# define FMT_ENUM_UNDERLYING_TYPE(type)
|
||||||
#else
|
#else
|
||||||
# define FMT_ENUM_UNDERLYING_TYPE(type) : type
|
# define FMT_ENUM_UNDERLYING_TYPE(type) : type
|
||||||
#endif
|
#endif
|
||||||
namespace align {
|
namespace align {
|
||||||
enum type FMT_ENUM_UNDERLYING_TYPE(unsigned char) { none, left, right, center, numeric };
|
enum type FMT_ENUM_UNDERLYING_TYPE(unsigned char){none, left, right, center,
|
||||||
|
numeric};
|
||||||
}
|
}
|
||||||
using align_t = align::type;
|
using align_t = align::type;
|
||||||
namespace sign {
|
namespace sign {
|
||||||
enum type FMT_ENUM_UNDERLYING_TYPE(unsigned char) { none, minus, plus, space };
|
enum type FMT_ENUM_UNDERLYING_TYPE(unsigned char){none, minus, plus, space};
|
||||||
}
|
}
|
||||||
using sign_t = sign::type;
|
using sign_t = sign::type;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user