From 252f23d5a5283870bcac02a328924b0dd56685a1 Mon Sep 17 00:00:00 2001 From: Pavel Artsishevsky Date: Tue, 17 Dec 2024 00:14:59 +0100 Subject: [PATCH] Remove spaces between NOLINT* and brace Signed-off-by: Pavel Artsishevsky --- include/slimlog/format.h | 2 +- include/slimlog/location.h | 2 +- include/slimlog/util/os.h | 3 +-- include/slimlog/util/unicode.h | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/slimlog/format.h b/include/slimlog/format.h index 454c37c..0cb54df 100644 --- a/include/slimlog/format.h +++ b/include/slimlog/format.h @@ -323,7 +323,7 @@ class CachedFormatter final : Formatter { #ifndef SLIMLOG_FMTLIB /** @cond */ template Char> -struct std::formatter, Char> { // NOLINT (cert-dcl58-cpp) +struct std::formatter, Char> { // NOLINT(cert-dcl58-cpp) constexpr auto parse(SlimLog::FormatParseContext& context) { return context.begin(); diff --git a/include/slimlog/location.h b/include/slimlog/location.h index f2d6ff6..2b49b0c 100644 --- a/include/slimlog/location.h +++ b/include/slimlog/location.h @@ -19,7 +19,7 @@ consteval static auto extract_file_name(const char* path) -> const char* '/'; #endif while (*path != '\0') { - // NOLINTNEXTLINE (cppcoreguidelines-pro-bounds-pointer-arithmetic) + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) if (*path++ == sep) { file = path; } diff --git a/include/slimlog/util/os.h b/include/slimlog/util/os.h index 6fefc25..bc2d608 100644 --- a/include/slimlog/util/os.h +++ b/include/slimlog/util/os.h @@ -64,8 +64,7 @@ namespace SlimLog::Util::OS { #if defined(__ANDROID__) && defined(__ANDROID_API__) && (__ANDROID_API__ < 21) #define SYS_gettid __NR_gettid #endif - // NOLINTNEXTLINE (*-vararg) - cached_tid = static_cast(::syscall(SYS_gettid)); + cached_tid = static_cast(::syscall(SYS_gettid)); // NOLINT(*-vararg) #elif defined(_AIX) struct __pthrdsinfo buf; int reg_size = 0; diff --git a/include/slimlog/util/unicode.h b/include/slimlog/util/unicode.h index 51bdb8b..9f0e3c7 100644 --- a/include/slimlog/util/unicode.h +++ b/include/slimlog/util/unicode.h @@ -53,7 +53,7 @@ struct FromMultibyte { auto get(Char* chr, const char* str, std::size_t len) -> int { using namespace Fallback; - // NOLINTBEGIN (concurrency-mt-unsafe) + // NOLINTBEGIN(concurrency-mt-unsafe) if constexpr (std::is_same_v) { return handle(mbrtowc(chr, str, len, &m_state)); #ifdef __cpp_char8_t @@ -287,7 +287,7 @@ constexpr auto from_multibyte(Char* dest, std::string_view data, std::size_t cod throw std::runtime_error("mbsrtowcs_s(): conversion error"); } #else - // NOLINTNEXTLINE (concurrency-mt-unsafe) + // NOLINTNEXTLINE(concurrency-mt-unsafe) written = std::mbsrtowcs(dest, &source, codepoints, &state); if (written == static_cast(-1)) { throw std::runtime_error("std::mbsrtowcs(): conversion error");