Skip to content

Commit 880cec9

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#25047: tidy: add readability-redundant-declaration
c2b2958 tidy: add readability-redundant-declaration (fanquake) Pull request description: ACKs for top commit: vincenzopalazzo: ACK bitcoin/bitcoin@c2b2958 jonatack: Review-only ACK c2b2958 Tree-SHA512: 992dd81f9d0c511efcd8d9d1a8c05fc1401b854272f28f7f31ca0922164ddd7d7c01bfcf5ca268472b5d68969137110f5c0844a52938d294750584e1a948a874
2 parents 12455ac + c2b2958 commit 880cec9

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/.clang-tidy

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
Checks: '-*,bugprone-argument-comment,modernize-use-nullptr'
2-
WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr'
1+
Checks: '
2+
-*,
3+
bugprone-argument-comment,
4+
modernize-use-nullptr,
5+
readability-redundant-declaration,
6+
'
7+
WarningsAsErrors: '
8+
bugprone-argument-comment,
9+
modernize-use-nullptr,
10+
readability-redundant-declaration,
11+
'

src/netaddress.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#include <iterator>
2121
#include <tuple>
2222

23-
constexpr size_t CNetAddr::V1_SERIALIZATION_SIZE;
24-
constexpr size_t CNetAddr::MAX_ADDRV2_SIZE;
25-
2623
CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
2724
{
2825
switch (m_net) {

src/randomenv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
#include <sys/auxv.h>
5858
#endif
5959

60-
//! Necessary on some platforms
61-
extern char** environ;
60+
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
6261

6362
namespace {
6463

0 commit comments

Comments
 (0)