danielmarjamaki added a comment. > However, I think this check should be part of Clang diagnostics. GCC has > -Wredundant-decls for a long time.
I am not against that. What is the criteria? When should it be in the compiler and when should it be in clang-tidy? Personally I think it's natural that the compiler has warnings about dangerous code. This check is about readability. Repository: rL LLVM https://reviews.llvm.org/D24656 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits