mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
1c976c691c
Enable `bitcoin-unterminated-logprintf`. Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
22 lines
729 B
C++
22 lines
729 B
C++
// Copyright (c) 2023 Bitcoin Developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include "logprintf.h"
|
|
|
|
#include <clang-tidy/ClangTidyModule.h>
|
|
#include <clang-tidy/ClangTidyModuleRegistry.h>
|
|
|
|
class BitcoinModule final : public clang::tidy::ClangTidyModule
|
|
{
|
|
public:
|
|
void addCheckFactories(clang::tidy::ClangTidyCheckFactories& CheckFactories) override
|
|
{
|
|
CheckFactories.registerCheck<bitcoin::LogPrintfCheck>("bitcoin-unterminated-logprintf");
|
|
}
|
|
};
|
|
|
|
static clang::tidy::ClangTidyModuleRegistry::Add<BitcoinModule>
|
|
X("bitcoin-module", "Adds bitcoin checks.");
|
|
|
|
volatile int BitcoinModuleAnchorSource = 0;
|