Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-format-strings.py
Show All 9 Lines | |||||
import argparse | import argparse | ||||
import doctest | import doctest | ||||
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/txindex.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.cpp", "strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION))"), | ("src/util.cpp", "strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION))"), | ||||
("src/util.cpp", "strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION)"), | ("src/util.cpp", "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))"), | ||||
] | ] | ||||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |