From f6f920a1a877271ab36114bf4b6b107bc02c73e3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 11 May 2022 14:40:26 -0700 Subject: [PATCH] Tweak a comment and apply clang-format --- include/fmt/core.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 8dea0508a249..c1ef91e1b15b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2029,23 +2029,22 @@ template class basic_format_args { // between clang and gcc on ARM (#1919). using format_args = basic_format_args; -// We cannot use enum classes as bit fields because of a gcc bug, -// so we put them in namespaces instead. -// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414. +// We cannot use enum classes as bit fields because of a gcc bug, so we put them +// in namespaces instead (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414). // Additionally, if an underlying type is specified, older gcc incorrectly warns -// that the type is too small for all the enum values. -// Both these bugs are fixed as of gcc 9.3. +// that the type is too small. Both bugs are fixed in gcc 9.3. #if FMT_GCC_VERSION && FMT_GCC_VERSION < 903 -# define FMT_ENUM_UNDERLYING_TYPE(type) +# define FMT_ENUM_UNDERLYING_TYPE(type) #else -# define FMT_ENUM_UNDERLYING_TYPE(type) : type +# define FMT_ENUM_UNDERLYING_TYPE(type) : type #endif 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; 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;