Apply clang-format

This commit is contained in:
Victor Zverovich
2020-06-25 07:14:55 -07:00
parent d130ee070f
commit 79c4b6bd70
2 changed files with 9 additions and 8 deletions

View File

@ -573,7 +573,8 @@ auto compile(const Char (&format_str)[N])
// DEPRECATED! use FMT_COMPILE instead. // DEPRECATED! use FMT_COMPILE instead.
template <typename... Args> template <typename... Args>
FMT_DEPRECATED auto compile(const Args&... args) -> decltype(detail::compile(args...)) { FMT_DEPRECATED auto compile(const Args&... args)
-> decltype(detail::compile(args...)) {
return detail::compile(args...); return detail::compile(args...);
} }

View File

@ -73,7 +73,7 @@
# if defined(__clang__) # if defined(__clang__)
# define FMT_FALLTHROUGH [[clang::fallthrough]] # define FMT_FALLTHROUGH [[clang::fallthrough]]
# elif FMT_GCC_VERSION >= 700 && !defined(__PGI) && \ # elif FMT_GCC_VERSION >= 700 && !defined(__PGI) && \
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520) (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
# define FMT_FALLTHROUGH [[gnu::fallthrough]] # define FMT_FALLTHROUGH [[gnu::fallthrough]]
# else # else
# define FMT_FALLTHROUGH # define FMT_FALLTHROUGH
@ -129,9 +129,9 @@ FMT_END_NAMESPACE
#ifndef FMT_USE_USER_DEFINED_LITERALS #ifndef FMT_USE_USER_DEFINED_LITERALS
// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs. // EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
# if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \ # if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
FMT_MSC_VER >= 1900) && \ FMT_MSC_VER >= 1900) && \
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480) (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
# define FMT_USE_USER_DEFINED_LITERALS 1 # define FMT_USE_USER_DEFINED_LITERALS 1
# else # else
# define FMT_USE_USER_DEFINED_LITERALS 0 # define FMT_USE_USER_DEFINED_LITERALS 0
@ -141,9 +141,9 @@ FMT_END_NAMESPACE
#ifndef FMT_USE_UDL_TEMPLATE #ifndef FMT_USE_UDL_TEMPLATE
// EDG frontend based compilers (icc, nvcc, etc) and GCC < 6.4 do not properly // EDG frontend based compilers (icc, nvcc, etc) and GCC < 6.4 do not properly
// support UDL templates and GCC >= 9 warns about them. // support UDL templates and GCC >= 9 warns about them.
# if FMT_USE_USER_DEFINED_LITERALS && \ # if FMT_USE_USER_DEFINED_LITERALS && \
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 501) && \ (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 501) && \
((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \ ((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \
FMT_CLANG_VERSION >= 304) FMT_CLANG_VERSION >= 304)
# define FMT_USE_UDL_TEMPLATE 1 # define FMT_USE_UDL_TEMPLATE 1
# else # else