Go to file
Jonas Toth 9b1dc4c275 [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
2017-11-18 19:48:33 +00:00
clang [CodeGen] change const-ness of complex calls 2017-11-18 19:31:57 +00:00
clang-tools-extra [clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches 2017-11-18 19:48:33 +00:00
compiler-rt Revert "[asan] Use dynamic shadow on 32-bit Android" and 3 more. 2017-11-18 00:22:34 +00:00
debuginfo-tests Re-revert "Refactor debuginfo-tests" 2017-11-17 00:41:18 +00:00
libclc math: Implement minmag 2017-11-15 04:10:39 +00:00
libcxx Mark free functions size/empty/data conditionally noexcept. 2017-11-16 17:55:41 +00:00
libcxxabi [libcxxabi][CMake] Provide option to disable installing of the library 2017-11-17 23:25:09 +00:00
libunwind [libunwind][CMake] Provide option to disable instalation of the library 2017-11-17 23:29:46 +00:00
lld Don't use llvm/Config/config.h. 2017-11-17 21:40:38 +00:00
lldb [ABI] Remove dead code that was copy-pasted all around. NFCI. 2017-11-18 00:54:31 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [X86][AVX512VL] Add AVX512VL tests to the vselect packss tests. 2017-11-18 19:47:59 +00:00
openmp [OMPT] Fix inaccuracies in worksharing tests 2017-11-17 15:26:44 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [NFC] Make r318597 compatible with clang-format 2017-11-17 22:05:19 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.