...
Recommendation | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
DCL01-C | Low | Unlikely | Yes | MediumYes | P2P3 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| Supported indirectly via MISRA C:2012 Rule 5.3. | |||||||||||||
| Axivion Bauhaus Suite |
| CertC-DCL01 | |||||||||||||
| CodeSonar |
| LANG.ID.ND.NEST | Non-distinct identifiers: nested scope | ||||||||||||
| Compass/ROSE | |||||||||||||||
| CC2.DCL01 | Fully implemented | |||||||||||||
| Helix QAC |
| C0795, C0796, C2547, C3334 | |||||||||||||
| Klocwork |
| MISRA.VAR.HIDDEN | |||||||||||||
| LDRA tool suite |
| 131 S | Fully implemented | ||||||||||||
| Parasoft C/C++test |
| CERT_C-DCL01-a | Identifier declared in a local or function prototype scope shall not hide an identifier declared in a global or namespace scope | ||||||||||||
| PC-lint Plus |
| 578 | Fully supported | ||||||||||||
| Polyspace Bug Finder |
| Checks for variable shadowing (rule fully covered) | PRQA QA-C | ||||||||||||
| Include Page | PRQA QA-C_v | PRQA QA-C_v | 0795, 0796, 2547, 3334 | Fully implemented||||||||||||
| PVS-Studio |
| V561, V688, V703, V711, V2015 | |||||||||||||
| RuleChecker |
| Supported indirectly via MISRA C:2012 Rule 5.3. | |||||||||||||
| Security Reviewer - Static Reviewer | 6.02 | C126 C127 | Fully Implemented | ||||||||||||
| Splint |
|
...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
| SEI CERT C++ Coding Standard | VOID DCL01-CPP. Do not reuse variable names in subscopes |
| MISRA C:2012 | Rule 5.3 (required) |
...