[PATCH] D19165: [clang-tidy] Add modernize-increment-bool check.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 09:51:26 PDT 2016


aaron.ballman added a subscriber: aaron.ballman.
aaron.ballman added a comment.

This strikes me as something the compiler should diagnose instead of a clang-tidy check. Incrementing a bool has been deprecated for some time, but it is outright removed in C++17, so I think giving users a migration path as part of the compiler would be far more beneficial. What do you think?


http://reviews.llvm.org/D19165





More information about the cfe-commits mailing list