mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
Merge bitcoin/bitcoin#25466: ci: add unused-using-decls to clang-tidy
a02f3f19f5
tidy: use misc-unused-using-decls (fanquake)d6787bc19b
refactor: remove unused using directives (fanquake)3617634324
validation: remove unused using directives (eugene) Pull request description: Adds https://clang.llvm.org/extra/clang-tidy/checks/misc/unused-using-decls.html to our clang-tidy. PR'd after the discussion in #25433 (which it includes). ACKs for top commit: jamesob: Github ACKa02f3f19f5
Tree-SHA512: 2bb937c1cc90006e69054458d845fb54f287567f4309c773a3fc859f260558c32ff51fc1c2ce9b43207426f3547e7ce226c87186103d741d5efcca19cd355253
This commit is contained in:
commit
47c86a023d
11 changed files with 4 additions and 22 deletions
|
@ -1,12 +1,14 @@
|
||||||
Checks: '
|
Checks: '
|
||||||
-*,
|
-*,
|
||||||
bugprone-argument-comment,
|
bugprone-argument-comment,
|
||||||
|
misc-unused-using-decls,
|
||||||
modernize-use-default-member-init,
|
modernize-use-default-member-init,
|
||||||
modernize-use-nullptr,
|
modernize-use-nullptr,
|
||||||
readability-redundant-declaration,
|
readability-redundant-declaration,
|
||||||
'
|
'
|
||||||
WarningsAsErrors: '
|
WarningsAsErrors: '
|
||||||
bugprone-argument-comment,
|
bugprone-argument-comment,
|
||||||
|
misc-unused-using-decls,
|
||||||
modernize-use-default-member-init,
|
modernize-use-default-member-init,
|
||||||
modernize-use-nullptr,
|
modernize-use-nullptr,
|
||||||
readability-redundant-declaration,
|
readability-redundant-declaration,
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
using wallet::CWallet;
|
using wallet::CWallet;
|
||||||
using wallet::DatabaseFormat;
|
using wallet::DatabaseFormat;
|
||||||
using wallet::DatabaseOptions;
|
using wallet::DatabaseOptions;
|
||||||
using wallet::ISMINE_SPENDABLE;
|
|
||||||
using wallet::MakeWalletDatabase;
|
|
||||||
using wallet::TxStateInactive;
|
using wallet::TxStateInactive;
|
||||||
using wallet::WALLET_FLAG_DESCRIPTORS;
|
using wallet::WALLET_FLAG_DESCRIPTORS;
|
||||||
using wallet::WalletContext;
|
using wallet::WalletContext;
|
||||||
|
|
|
@ -110,7 +110,6 @@ using node::CacheSizes;
|
||||||
using node::CalculateCacheSizes;
|
using node::CalculateCacheSizes;
|
||||||
using node::ChainstateLoadVerifyError;
|
using node::ChainstateLoadVerifyError;
|
||||||
using node::ChainstateLoadingError;
|
using node::ChainstateLoadingError;
|
||||||
using node::CleanupBlockRevFiles;
|
|
||||||
using node::DEFAULT_PERSIST_MEMPOOL;
|
using node::DEFAULT_PERSIST_MEMPOOL;
|
||||||
using node::DEFAULT_PRINTPRIORITY;
|
using node::DEFAULT_PRINTPRIORITY;
|
||||||
using node::DEFAULT_STOPAFTERBLOCKIMPORT;
|
using node::DEFAULT_STOPAFTERBLOCKIMPORT;
|
||||||
|
|
|
@ -77,8 +77,6 @@ Q_DECLARE_METATYPE(CAmount)
|
||||||
Q_DECLARE_METATYPE(SynchronizationState)
|
Q_DECLARE_METATYPE(SynchronizationState)
|
||||||
Q_DECLARE_METATYPE(uint256)
|
Q_DECLARE_METATYPE(uint256)
|
||||||
|
|
||||||
using node::NodeContext;
|
|
||||||
|
|
||||||
static void RegisterMetaTypes()
|
static void RegisterMetaTypes()
|
||||||
{
|
{
|
||||||
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
|
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
|
||||||
|
|
|
@ -43,8 +43,6 @@ Q_IMPORT_PLUGIN(QAndroidPlatformIntegrationPlugin)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using node::NodeContext;
|
|
||||||
|
|
||||||
const std::function<void(const std::string&)> G_TEST_LOG_FUN{};
|
const std::function<void(const std::string&)> G_TEST_LOG_FUN{};
|
||||||
|
|
||||||
const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS{};
|
const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS{};
|
||||||
|
|
|
@ -25,7 +25,6 @@ using kernel::DumpMempool;
|
||||||
|
|
||||||
using node::DEFAULT_MAX_RAW_TX_FEE_RATE;
|
using node::DEFAULT_MAX_RAW_TX_FEE_RATE;
|
||||||
using node::MempoolPath;
|
using node::MempoolPath;
|
||||||
using node::ShouldPersistMempool;
|
|
||||||
using node::NodeContext;
|
using node::NodeContext;
|
||||||
|
|
||||||
static RPCHelpMan sendrawtransaction()
|
static RPCHelpMan sendrawtransaction()
|
||||||
|
|
|
@ -26,11 +26,6 @@
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace node {
|
|
||||||
struct NodeContext;
|
|
||||||
}
|
|
||||||
using node::NodeContext;
|
|
||||||
|
|
||||||
static RPCHelpMan validateaddress()
|
static RPCHelpMan validateaddress()
|
||||||
{
|
{
|
||||||
return RPCHelpMan{
|
return RPCHelpMan{
|
||||||
|
|
|
@ -46,12 +46,10 @@
|
||||||
#include <univalue.h>
|
#include <univalue.h>
|
||||||
|
|
||||||
using node::AnalyzePSBT;
|
using node::AnalyzePSBT;
|
||||||
using node::BroadcastTransaction;
|
|
||||||
using node::FindCoins;
|
using node::FindCoins;
|
||||||
using node::GetTransaction;
|
using node::GetTransaction;
|
||||||
using node::NodeContext;
|
using node::NodeContext;
|
||||||
using node::PSBTAnalysis;
|
using node::PSBTAnalysis;
|
||||||
using node::ReadBlockFromDisk;
|
|
||||||
|
|
||||||
static void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry, CChainState& active_chainstate)
|
static void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry, CChainState& active_chainstate)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
using kernel::CCoinsStats;
|
|
||||||
using kernel::CoinStatsHashType;
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE(coinstatsindex_tests)
|
BOOST_AUTO_TEST_SUITE(coinstatsindex_tests)
|
||||||
|
|
||||||
static void IndexWaitSynced(BaseIndex& index)
|
static void IndexWaitSynced(BaseIndex& index)
|
||||||
|
|
|
@ -120,6 +120,8 @@ struct KeyConverter {
|
||||||
//! Singleton instance of KeyConverter.
|
//! Singleton instance of KeyConverter.
|
||||||
const KeyConverter CONVERTER{};
|
const KeyConverter CONVERTER{};
|
||||||
|
|
||||||
|
// https://github.com/llvm/llvm-project/issues/53444
|
||||||
|
// NOLINTNEXTLINE(misc-unused-using-decls)
|
||||||
using miniscript::operator"" _mst;
|
using miniscript::operator"" _mst;
|
||||||
|
|
||||||
enum TestMode : int {
|
enum TestMode : int {
|
||||||
|
|
|
@ -69,7 +69,6 @@ using kernel::ComputeUTXOStats;
|
||||||
using kernel::LoadMempool;
|
using kernel::LoadMempool;
|
||||||
|
|
||||||
using fsbridge::FopenFn;
|
using fsbridge::FopenFn;
|
||||||
using node::BLOCKFILE_CHUNK_SIZE;
|
|
||||||
using node::BlockManager;
|
using node::BlockManager;
|
||||||
using node::BlockMap;
|
using node::BlockMap;
|
||||||
using node::CBlockIndexHeightOnlyComparator;
|
using node::CBlockIndexHeightOnlyComparator;
|
||||||
|
@ -77,11 +76,8 @@ using node::CBlockIndexWorkComparator;
|
||||||
using node::fImporting;
|
using node::fImporting;
|
||||||
using node::fPruneMode;
|
using node::fPruneMode;
|
||||||
using node::fReindex;
|
using node::fReindex;
|
||||||
using node::nPruneTarget;
|
|
||||||
using node::OpenBlockFile;
|
|
||||||
using node::ReadBlockFromDisk;
|
using node::ReadBlockFromDisk;
|
||||||
using node::SnapshotMetadata;
|
using node::SnapshotMetadata;
|
||||||
using node::UNDOFILE_CHUNK_SIZE;
|
|
||||||
using node::UndoReadFromDisk;
|
using node::UndoReadFromDisk;
|
||||||
using node::UnlinkPrunedFiles;
|
using node::UnlinkPrunedFiles;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue