3 ms·
No separate linters needed, but details differ between compilers. GCC has a warning in the '-Wextra' warning set, Clang requires the explicit option `-Wimplici
by flohofwoe 3y ago
No separate linters needed, but details differ between compilers.
GCC has a warning in the '-Wextra' warning set, Clang requires the explicit option `-Wimplicit-fallthrough', MSVC is completely silent (apparently it's in the CppCoreCheck rules though).
This should really be in the default warning set with an annotation that the fallthrough is intended (unless the case-branch is completely empty).