
...
Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
---|---|---|---|---|---|---|
DCL41-C | Medium | Unlikely | Yes | Yes | P6 | L2 |
Automated Detection
Tool | Version | Checker | Description | ||||||
Astrée |
| switch-skipped-code | Fully checked | ||||||
Axivion Bauhaus Suite |
| CertC-DCL41 | Fully implemented | ||||||
Clang |
| -Wsometimes-uninitialized | |||||||
CodeSonar |
| LANG.STRUCT.SW.BAD | Malformed switch Statement | ||||||
Coverity |
| MISRA C 2004 Rule 15.0 MISRA C 2012 Rule 16.1 | Implemented | ||||||
Cppcheck Premium |
| premium-cert-dcl41-c | |||||||
Helix QAC |
| C2008, C2882, C3234 | Fully implemented | ||||||
Klocwork |
| CERT.DCL.SWITCH.VAR_BEFORE_CASE | Fully implemented | ||||||
LDRA tool suite |
| 385 S | Fully implemented | ||||||
Parasoft C/C++test |
| CERT_C-DCL41-a | A switch statement shall only contain switch labels and switch clauses, and no other code | ||||||
PC-lint Plus |
| 527 | Assistance provided | ||||||
Polyspace Bug Finder |
| CERT C: Rule DCL41-C | Checks for ill-formed switch statements (rule partially covered) | ||||||
PVS-Studio |
| V622 | |||||||
RuleChecker |
| switch-skipped-code | Fully checked | ||||||
TrustInSoft Analyzer |
| initialisation | Exhaustively detects undefined behavior (see the compliant and the non-compliant example). |
...