bitcoin-tidy: Apply bitcoin-unterminated-logprintf to spkm as well

This commit is contained in:
MarcoFalke
2023-08-16 14:55:19 +02:00
parent faa11434fe
commit fa60fa3b0c
2 changed files with 18 additions and 2 deletions

View File

@@ -36,14 +36,12 @@ void LogPrintfCheck::registerMatchers(clang::ast_matchers::MatchFinder* finder)
this);
/*
CWallet wallet;
auto walletptr = &wallet;
wallet.WalletLogPrintf("foo");
wallet->WalletLogPrintf("foo");
*/
finder->addMatcher(
cxxMemberCallExpr(
thisPointerType(qualType(hasDeclaration(cxxRecordDecl(hasName("CWallet"))))),
callee(cxxMethodDecl(hasName("WalletLogPrintf"))),
hasArgument(0, stringLiteral(unterminated()).bind("logstring"))),
this);