tidy: add readability-redundant-declaration
Summary:
This is a backport of core#25047
Depends on D18071
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D18072