diff --git a/include/fmt/core.h b/include/fmt/core.h index fd4350e7..5ed047df 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -117,8 +117,10 @@ # endif #endif -// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code warnings. -#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && !FMT_NVCC +// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code +// warnings. +#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \ + !FMT_NVCC # define FMT_NORETURN [[noreturn]] #else # define FMT_NORETURN @@ -208,7 +210,7 @@ FMT_BEGIN_NAMESPACE -// Implementations of enable_if_t and other types for pre-C++14 systems. +// Implementations of enable_if_t and other metafunctions for pre-C++14 systems. template using enable_if_t = typename std::enable_if::type; template diff --git a/include/fmt/format.h b/include/fmt/format.h index 1620e635..2c1cc3ce 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -90,7 +90,7 @@ FMT_BEGIN_NAMESPACE namespace internal { template inline void do_throw(const Exception& x) { - // Silence unreachable code warnings in MSVC and NVCC because these + // Silence unreachable code warnings in MSVC and NVCC because these // are nearly impossible to fix in a generic code. volatile bool b = true; if (b) throw x; diff --git a/include/fmt/os.h b/include/fmt/os.h index 5a00fc5e..b16441cb 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -5,8 +5,8 @@ // // For the license information refer to format.h. -#ifndef FMT_POSIX_H_ -#define FMT_POSIX_H_ +#ifndef FMT_OS_H_ +#define FMT_OS_H_ #if defined(__MINGW32__) || defined(__CYGWIN__) // Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/. @@ -397,4 +397,4 @@ class Locale { #endif // FMT_LOCALE FMT_END_NAMESPACE -#endif // FMT_POSIX_H_ +#endif // FMT_OS_H_