Versions Compared

Key

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

...

The only solution for mitigating ambiguity of a file, such as my_libraryOLD.h, is to rename old files with either a prefix (that would fall within the first eight characters) or add an extension (such as my_library.h.old).

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

CERT C++ Secure Coding Standard: PRE08-CPP. Guarantee that header file names are unique

Bibliography

unmigrated-wiki-markup

\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.10.2, "Source file inclusion" \[[MISRA 2004|AA. Bibliography#MISRA 04]\] Rule

MISRA Rule 19.5

Bibliography

...

      01. Preprocessor (PRE)