mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-15 07:20:05 +00:00
Apply clang-format
This commit is contained in:
parent
d130ee070f
commit
79c4b6bd70
@ -573,7 +573,8 @@ auto compile(const Char (&format_str)[N])
|
||||
|
||||
// DEPRECATED! use FMT_COMPILE instead.
|
||||
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...);
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
||||
# if defined(__clang__)
|
||||
# define FMT_FALLTHROUGH [[clang::fallthrough]]
|
||||
# elif FMT_GCC_VERSION >= 700 && !defined(__PGI) && \
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
|
||||
# define FMT_FALLTHROUGH [[gnu::fallthrough]]
|
||||
# else
|
||||
# define FMT_FALLTHROUGH
|
||||
@ -129,9 +129,9 @@ FMT_END_NAMESPACE
|
||||
|
||||
#ifndef FMT_USE_USER_DEFINED_LITERALS
|
||||
// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
|
||||
# if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
|
||||
FMT_MSC_VER >= 1900) && \
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
|
||||
# if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
|
||||
FMT_MSC_VER >= 1900) && \
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
|
||||
# define FMT_USE_USER_DEFINED_LITERALS 1
|
||||
# else
|
||||
# define FMT_USE_USER_DEFINED_LITERALS 0
|
||||
@ -141,9 +141,9 @@ FMT_END_NAMESPACE
|
||||
#ifndef FMT_USE_UDL_TEMPLATE
|
||||
// EDG frontend based compilers (icc, nvcc, etc) and GCC < 6.4 do not properly
|
||||
// support UDL templates and GCC >= 9 warns about them.
|
||||
# if FMT_USE_USER_DEFINED_LITERALS && \
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 501) && \
|
||||
((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \
|
||||
# if FMT_USE_USER_DEFINED_LITERALS && \
|
||||
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 501) && \
|
||||
((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \
|
||||
FMT_CLANG_VERSION >= 304)
|
||||
# define FMT_USE_UDL_TEMPLATE 1
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user