util: Use compile-time check for FatalErrorf

This commit is contained in:
MarcoFalke
2024-07-30 14:30:16 +02:00
parent faa62c0112
commit fa7087b896
5 changed files with 15 additions and 7 deletions

View File

@@ -16,7 +16,6 @@ import re
import sys
FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [
'FatalErrorf,0',
'tfm::format,1', # Assuming tfm::::format(std::ostream&, ...
'LogConnectFailure,1',
'LogError,0',

View File

@@ -13,8 +13,6 @@ import re
import sys
FALSE_POSITIVES = [
("src/index/base.cpp", "FatalErrorf(const char* fmt, const Args&... args)"),
("src/index/base.h", "FatalErrorf(const char* fmt, const Args&... args)"),
("src/netbase.cpp", "LogConnectFailure(bool manual_connection, const char* fmt, const Args&... args)"),
("src/clientversion.cpp", "strprintf(_(COPYRIGHT_HOLDERS).translated, COPYRIGHT_HOLDERS_SUBSTITUTION)"),
("src/test/translation_tests.cpp", "strprintf(format, arg)"),