apply clang-format
This commit is contained in:
@ -284,16 +284,16 @@ std::string platform::compiler_info()
|
|||||||
double version = static_cast<double>(__INTEL_LLVM_COMPILER) * 0.01;
|
double version = static_cast<double>(__INTEL_LLVM_COMPILER) * 0.01;
|
||||||
buf = fmt::format("Intel LLVM C++ {:.1f} / {}", version, __VERSION__);
|
buf = fmt::format("Intel LLVM C++ {:.1f} / {}", version, __VERSION__);
|
||||||
#elif defined(__ibmxl__)
|
#elif defined(__ibmxl__)
|
||||||
buf = fmt::format("IBM XL C/C++ (Clang) {}.{}.{}",
|
buf = fmt::format("IBM XL C/C++ (Clang) {}.{}.{}", __ibmxl_version__, __ibmxl_release__,
|
||||||
__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__);
|
__ibmxl_modification__);
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
buf = fmt::format("Clang C++ {}", __VERSION__);
|
buf = fmt::format("Clang C++ {}", __VERSION__);
|
||||||
#elif defined(__PGI)
|
#elif defined(__PGI)
|
||||||
buf = fmt::format("PGI C++ {}.{}", __PGIC__, __PGIC_MINOR__);
|
buf = fmt::format("PGI C++ {}.{}", __PGIC__, __PGIC_MINOR__);
|
||||||
#elif defined(__INTEL_COMPILER)
|
#elif defined(__INTEL_COMPILER)
|
||||||
double version = static_cast<double>(__INTEL_COMPILER) * 0.01;
|
double version = static_cast<double>(__INTEL_COMPILER) * 0.01;
|
||||||
buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version,
|
buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version, __INTEL_COMPILER_UPDATE,
|
||||||
__INTEL_COMPILER_UPDATE, __VERSION__);
|
__VERSION__);
|
||||||
#elif defined(__MINGW64__)
|
#elif defined(__MINGW64__)
|
||||||
buf = fmt::format("MinGW-w64 64bit {}.{} / GNU C++ {}", __MINGW64_VERSION_MAJOR,
|
buf = fmt::format("MinGW-w64 64bit {}.{} / GNU C++ {}", __MINGW64_VERSION_MAJOR,
|
||||||
__MINGW64_VERSION_MINOR, __VERSION__);
|
__MINGW64_VERSION_MINOR, __VERSION__);
|
||||||
@ -305,7 +305,8 @@ std::string platform::compiler_info()
|
|||||||
#elif defined(_MSC_VER) && (_MSC_VER > 1920) && (_MSC_VER < 2000)
|
#elif defined(_MSC_VER) && (_MSC_VER > 1920) && (_MSC_VER < 2000)
|
||||||
constexpr int major = _MSC_VER / 100;
|
constexpr int major = _MSC_VER / 100;
|
||||||
constexpr int minor = _MSC_VER - major * 100;
|
constexpr int minor = _MSC_VER - major * 100;
|
||||||
buf = "Microsoft Visual Studio 20" + std::to_string(major) + ", C/C++ " + std::to_string(major-5) + "." + std::to_string(minor);
|
buf = "Microsoft Visual Studio 20" + std::to_string(major) + ", C/C++ " +
|
||||||
|
std::to_string(major - 5) + "." + std::to_string(minor);
|
||||||
#else
|
#else
|
||||||
buf = "(Unknown)";
|
buf = "(Unknown)";
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user