diff options
author | fanquake <fanquake@gmail.com> | 2022-07-19 15:51:47 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-08-03 17:52:24 +0100 |
commit | 1c976c691cc4b20f43071aabf36c7afed1571057 (patch) | |
tree | d81d4a689e0e8966879c7123eb1e6a154a7c26df /src | |
parent | 7de23cceb8ac13fcc709453ef0fa14fb93c460b0 (diff) | |
download | bitcoin-1c976c691cc4b20f43071aabf36c7afed1571057.tar.xz |
tidy: Integrate bicoin-tidy clang-tidy plugin
Enable `bitcoin-unterminated-logprintf`.
Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/.clang-tidy | 1 | ||||
-rw-r--r-- | src/dbwrapper.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy index 84c9d5fb3a..b4d50135dd 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -1,5 +1,6 @@ Checks: ' -*, +bitcoin-unterminated-logprintf, bugprone-argument-comment, bugprone-use-after-move, misc-unused-using-decls, diff --git a/src/dbwrapper.cpp b/src/dbwrapper.cpp index 91dc731a4c..7cf6bef90f 100644 --- a/src/dbwrapper.cpp +++ b/src/dbwrapper.cpp @@ -76,7 +76,7 @@ public: assert(p <= limit); base[std::min(bufsize - 1, (int)(p - base))] = '\0'; - LogPrintLevel(BCLog::LEVELDB, BCLog::Level::Debug, "%s", base); + LogPrintLevel(BCLog::LEVELDB, BCLog::Level::Debug, "%s", base); // NOLINT(bitcoin-unterminated-logprintf) if (base != buffer) { delete[] base; } |