Skip to content

Commit c2b2958

Browse files
committed
tidy: add readability-redundant-declaration
1 parent 5d53cf3 commit c2b2958

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)