Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that it is a common mistake to choose a reserved name for the name of the macro used in the inclusion guard. See DCL37-C. Do not declare or define a reserved identifier.

Risk Assessment

Failure to include header files in an inclusion guard can result in unexpected behavior.

...

ToolVersionCheckerDescription

LDRA tool suite

Include Page
LDRA_V
LDRA_V

243 S

Fully implemented

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

inclgard

Fully implemented
PRQA QA-C
Include Page
PRQA_V
PRQA_V
 0883Fully implemented

Related Vulnerabilities

...

ISO/IEC 9899:2011 Section 5.1.1, "Translation environment," section 6.10, "Preprocessing directives," and section 7.1.2, "Standard headers"

MISRA Rule 19.5

Bibliography

[Plum 1985] Rule 1-14

...