Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-format-strings.py
Show All 12 Lines | |||||
import re | import re | ||||
import sys | import sys | ||||
FALSE_POSITIVES = [ | FALSE_POSITIVES = [ | ||||
("src/dbwrapper.cpp", "vsnprintf(p, limit - p, format, backup_ap)"), | ("src/dbwrapper.cpp", "vsnprintf(p, limit - p, format, backup_ap)"), | ||||
("src/index/base.cpp", "FatalError(const char *fmt, const Args &... args)"), | ("src/index/base.cpp", "FatalError(const char *fmt, const Args &... args)"), | ||||
("src/netbase.cpp", "LogConnectFailure(bool manual_connection, const char *fmt, const Args &... args)"), | ("src/netbase.cpp", "LogConnectFailure(bool manual_connection, const char *fmt, const Args &... args)"), | ||||
("src/util/system.cpp", | ("src/util/system.cpp", | ||||
"strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION))"), | "strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION)"), | ||||
("src/tinyformat.h", "printf(const char *fmt, const Args &... args)"), | ("src/tinyformat.h", "printf(const char *fmt, const Args &... args)"), | ||||
("src/tinyformat.h", "printf(const char *fmt, TINYFORMAT_VARARGS(n))"), | ("src/tinyformat.h", "printf(const char *fmt, TINYFORMAT_VARARGS(n))"), | ||||
("src/wallet/wallet.h", | ("src/wallet/wallet.h", | ||||
"LogPrintf((\"%s \" + fmt).c_str(), GetDisplayName(), parameters...)"), | "LogPrintf((\"%s \" + fmt).c_str(), GetDisplayName(), parameters...)"), | ||||
("src/logging.h", "LogPrintf(const char *fmt, const Args &... args)"), | ("src/logging.h", "LogPrintf(const char *fmt, const Args &... args)"), | ||||
] | ] | ||||
FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [ | FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [ | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |