...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
| 12 S | Fully implemented. | |||||||
GCC |
| Can detect some violations of this recommendation when the | |||||||
Compass/ROSE | Can detect some violations of this recommendation. In particular, it flags switch statements that do not have a default clause. ROSE should detect "fake switches" as well (that is, a chain of if (x > 0) { /* ... */ } else if (x < 0) { /* ... */ } else if (x == 0) { /* ... */ }
| ||||||||
Klocwork |
| LA_UNUSED | |||||||
PRQA QA-C |
| 0597 | Fully implemented |
Related Vulnerabilities
...
CERT C++ Secure Coding Standard: MSC01-CPP. Strive for logical completeness
ISO/IEC TR TS 17961 (Draft) Use of an implied default in a switch statement [swtchdflt]
...