aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CodeGenCoverage.cpp
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2017-11-18 19:48:33 +0000
committerJonas Toth <jonas.toth@gmail.com>2017-11-18 19:48:33 +0000
commit9b1dc4c2756dc25f38caa0cf6e6b71d70295b2d1 (patch)
treeaded95ae12af65a8e91b46edfcf0b75091865142 /llvm/lib/Support/CodeGenCoverage.cpp
parent41fc45c4e656a9f35b20e59a2fdf86168f9b2658 (diff)
downloadllvm-9b1dc4c2756dc25f38caa0cf6e6b71d70295b2d1.zip
llvm-9b1dc4c2756dc25f38caa0cf6e6b71d70295b2d1.tar.gz
llvm-9b1dc4c2756dc25f38caa0cf6e6b71d70295b2d1.tar.bz2
[clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches
Summary: This check searches for missing `else` branches in `if-else if`-chains and missing `default` labels in `switch` statements, that use integers as condition. It is very similar to -Wswitch, but concentrates on integers only, since enums are already covered. The option to warn for missing `else` branches is deactivated by default, since it is very noise on larger code bases. Running it on LLVM: {F5354858} for default configuration {F5354866} just for llvm/lib/Analysis/ScalarEvolution.cpp, the else-path checker is very noisy! Reviewers: alexfh, aaron.ballman, hokein Reviewed By: aaron.ballman Subscribers: lebedev.ri, Eugene.Zelenko, cfe-commits, mgorny, JDevlieghere, xazax.hun Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D37808 llvm-svn: 318600
Diffstat (limited to 'llvm/lib/Support/CodeGenCoverage.cpp')
0 files changed, 0 insertions, 0 deletions