From 2b5661b88d4fde9c61132db2c211af7ea9ed7850 Mon Sep 17 00:00:00 2001 From: thawk105 Date: Thu, 14 May 2026 06:33:56 +0000 Subject: [PATCH 1/2] Add .gitattributes to enforce LF line endings ccbench targets x86_64 Linux only, so all text files should use LF. "* text=auto eol=lf" prevents CRLF from creeping in regardless of the platform a contributor uses. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) 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 From 5c1b332c271d3736a91e1fef145d729e69c12225 Mon Sep 17 00:00:00 2001 From: thawk105 Date: Thu, 14 May 2026 06:34:23 +0000 Subject: [PATCH 2/2] Normalize include/logger.h to LF line endings This file was the only tracked text file with CRLF line endings, as reported by "git ls-files --eol". Renormalized via "git add --renormalize ." after the .gitattributes change. --- include/logger.h | 54 ++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) 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