[previous] 0814 [next] [U] Using the characters ' or /* in '#include "%s"' gives undefined behaviour.
Explicitly undefined REFERENCE - ISO:C90-6.1.7 Header Names

The name of the file in this #include "..." statement contains characters which are not permitted.

The character ' and the sequence /* should not be used as part of the filename in a #include statement.

For example:


/*PRQA S 553,2017 ++*/

#include "fred's-header.h"        /* Message 0814 and also 0816 and 0818 */


MISRA-C:2004 Rules applicable to message 0814:

Rule  1.2  (Required) No reliance shall be placed on undefined or unspecified behaviour.
Rule  19.2  (Advisory) Non-standard characters should not occur in header file names in #include directives.


See also:

QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents