aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-07-19 15:51:47 +0100
committerfanquake <fanquake@gmail.com>2023-08-03 17:52:24 +0100
commit1c976c691cc4b20f43071aabf36c7afed1571057 (patch)
treed81d4a689e0e8966879c7123eb1e6a154a7c26df /src
parent7de23cceb8ac13fcc709453ef0fa14fb93c460b0 (diff)
downloadbitcoin-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-tidy1
-rw-r--r--src/dbwrapper.cpp2
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;
}