tidy: add readability-redundant-declaration

This commit is contained in:
fanquake 2022-05-01 10:39:40 +01:00
parent 5d53cf3878
commit c2b295881f
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
3 changed files with 12 additions and 7 deletions

View File

@ -1,2 +1,11 @@
Checks: '-*,bugprone-argument-comment,modernize-use-nullptr'
WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr'
Checks: '
-*,
bugprone-argument-comment,
modernize-use-nullptr,
readability-redundant-declaration,
'
WarningsAsErrors: '
bugprone-argument-comment,
modernize-use-nullptr,
readability-redundant-declaration,
'

View File

@ -20,9 +20,6 @@
#include <iterator>
#include <tuple>
constexpr size_t CNetAddr::V1_SERIALIZATION_SIZE;
constexpr size_t CNetAddr::MAX_ADDRV2_SIZE;
CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
{
switch (m_net) {

View File

@ -57,8 +57,7 @@
#include <sys/auxv.h>
#endif
//! Necessary on some platforms
extern char** environ;
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
namespace {