[PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

Eugene Zelenko via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 16 10:23:47 PDT 2016


Eugene.Zelenko added a subscriber: Eugene.Zelenko.
Eugene.Zelenko added a comment.

Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).

Will be good idea to detect redundant function prototypes.

However, I think this check should be part of Clang diagnostics. GCC has -Wredundant-decls <https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc/Warning-Options.html#Warning-Options> for a long time.


Repository:
  rL LLVM

https://reviews.llvm.org/D24656





More information about the cfe-commits mailing list