[PATCH] D37808: [clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 16 05:38:03 PDT 2017


JonasToth added a comment.

Informationen my part think that both switch and else should stay here for now. Running it over llvm gave really a lot of warnings, and that a rather good codebase.

The check did not recognize logic, your example would be warned against. I don't see a way to implement something like that here, that would require condition solving and so on.

In general, this check is more about defensive programming and therefore clang-tidy a good place.


https://reviews.llvm.org/D37808





More information about the cfe-commits mailing list