Skip to content

Commit

Permalink
Remove spaces between NOLINT* and brace
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
  • Loading branch information
polter-rnd committed Dec 16, 2024
1 parent 72131c3 commit 252f23d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/slimlog/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class CachedFormatter final : Formatter<T, Char> {
#ifndef SLIMLOG_FMTLIB
/** @cond */
template<typename T, SlimLog::Formattable<T> Char>
struct std::formatter<SlimLog::FormatValue<T, Char>, Char> { // NOLINT (cert-dcl58-cpp)
struct std::formatter<SlimLog::FormatValue<T, Char>, Char> { // NOLINT(cert-dcl58-cpp)
constexpr auto parse(SlimLog::FormatParseContext<Char>& context)
{
return context.begin();
Expand Down
2 changes: 1 addition & 1 deletion include/slimlog/location.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions include/slimlog/util/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(::syscall(SYS_gettid));
cached_tid = static_cast<size_t>(::syscall(SYS_gettid)); // NOLINT(*-vararg)
#elif defined(_AIX)
struct __pthrdsinfo buf;
int reg_size = 0;
Expand Down
4 changes: 2 additions & 2 deletions include/slimlog/util/unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Char, wchar_t>) {
return handle(mbrtowc(chr, str, len, &m_state));
#ifdef __cpp_char8_t
Expand Down Expand Up @@ -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<std::size_t>(-1)) {
throw std::runtime_error("std::mbsrtowcs(): conversion error");
Expand Down

0 comments on commit 252f23d

Please sign in to comment.