...
By using different variable names globally and locally, the compiler forces the developer to be more precise and descriptive with variable names.
Risk Assessment
Hiding variables in enclosing scopes can lead to surprising results.
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL00-PL | low | probable | medium | P2 | L3 |
Automated Detection
Tool | Diagnostic |
---|---|
B::Lint | .* masks earlier declaration in same scope |
...