Declarations and Initialization (DCL)
- DCL30-C. Declare objects with appropriate storage durations
- DCL31-C. Declare identifiers before using them
- DCL36-C. Do not declare an identifier with conflicting linkage classifications
- DCL37-C. Do not declare or define a reserved identifier
- DCL38-C. Use the correct syntax when declaring a flexible array member
- DCL39-C. Avoid information leakage when passing a structure across a trust boundary
- DCL40-C. Do not create incompatible declarations of the same function or object
- DCL41-C. Do not declare variables inside a switch statement before the first case label
Information for Editors
In order to have a new guideline automatically listed above be sure to label it dcl and rule .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| DCL30-C | High | Probable | No | No | P6 | L2 |
| DCL31-C | Low | Unlikely | Yes | Yes | P3 | L3 |
| DCL36-C | Medium | Probable | Yes | No | P8 | L2 |
| DCL37-C | Low | Unlikely | Yes | No | P2 | L3 |
| DCL38-C | Low | Unlikely | Yes | Yes | P3 | L3 |
| DCL39-C | Low | Unlikely | No | Yes | P2 | L3 |
| DCL40-C | Low | Unlikely | Yes | No | P2 | L3 |
| DCL41-C | Medium | Unlikely | Yes | Yes | P6 | L2 |


