[PATCH] D30896: [Clang-tidy] add check misc-prefer-switch-for-enums
Jonathan B Coe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 16 11:47:51 PDT 2017
jbcoe added a comment.
I think that clang-tidy allows case-specific subsetting of C++. It is said that C++ contains a beautiful language and I've found that definition of beauty to be very use-case specific. Checks for side-effect free, Haskell-like, functional code would be of enormous interest to some subsections of the C++ community ( financial asset pricing and risk) but of very little interest to others (device drivers for embedded code). It would seem an enormous loss to me to require all clang-tidy checks to be generally useful. It's a simple matter to define a clang-tidy config file to enable different checks in different parts of a code base.
More information about the cfe-commits