4 ms·
There are linters that raise an error when there is a fallthrough without an explicit comment [0]. I feel like that should be a must for working with C code. [
by climb_stealth 6y ago
There are linters that raise an error when there is a fallthrough without an explicit comment [0]. I feel like that should be a must for working with C code.
[0] I don't remember which one it actually was. Possibly something commercial for MISRA compliance.
- cjfd 6y agoActually in C++ there is a fallthrough attribute in the language nowadays. https://en.cppreference.com/w/cpp/language/attributes/fallthrough https://en.cppreference.com/w/cpp/language/attributes/fallth...