diff --git a/.gitattributes b/.gitattributes index f408cac8..e8e1759f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,7 @@ +# All text files use LF, regardless of the platform a contributor uses. +# ccbench targets x86_64 Linux only, so there is no reason to keep CRLF. +* text=auto eol=lf + .gitignore export-ignore .gitattributes export-ignore oze* export-ignore diff --git a/include/logger.h b/include/logger.h index 08a74609..bd6abce1 100644 --- a/include/logger.h +++ b/include/logger.h @@ -1,27 +1,27 @@ -// -// Created by thawk on 2020/11/10. -// - -#pragma once - -#ifdef NDEBUG -#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO -#else -#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG // NOLINT -#endif - -#include "spdlog/spdlog.h" - -namespace ccbench { - -static inline void setup_spdlog() { - -#ifdef NDEBUG - spdlog::set_level(spdlog::level::info); -#else - spdlog::set_level(spdlog::level::debug); -#endif - -} - -} // namespace ccbench +// +// Created by thawk on 2020/11/10. +// + +#pragma once + +#ifdef NDEBUG +#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO +#else +#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG // NOLINT +#endif + +#include "spdlog/spdlog.h" + +namespace ccbench { + +static inline void setup_spdlog() { + +#ifdef NDEBUG + spdlog::set_level(spdlog::level::info); +#else + spdlog::set_level(spdlog::level::debug); +#endif + +} + +} // namespace ccbench