Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-format-strings.py
Show All 16 Lines | 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/seeder/main.cpp", "fprintf(stderr, help, argv[0])"), | ("src/seeder/main.cpp", "fprintf(stderr, help, argv[0])"), | ||||
("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", | |||||
"LogPrintf((\"%s \" + fmt).c_str(), GetDisplayName(), parameters...)"), | |||||
] | ] | ||||
FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [ | FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [ | ||||
("FatalError", 0), | ("FatalError", 0), | ||||
("fprintf", 1), | ("fprintf", 1), | ||||
("LogConnectFailure", 1), | ("LogConnectFailure", 1), | ||||
("LogPrint", 1), | ("LogPrint", 1), | ||||
("LogPrintf", 0), | ("LogPrintf", 0), | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |