[PATCH] D30896: [Clang-tidy] add check misc-prefer-switch-for-enums
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 15 11:00:40 PDT 2017
JonasToth added a comment.
@jbcoe and @aaron.ballman i think an valid warning would be if there is another check in an `else if` statement.
so singular `if(enum_value == Enum::Kind)` is still ok, but another branch checking on the enum is suspiscious.
More information about the cfe-commits