This diagnostic rule is based on the MISRA (Motor Industry Software Reliability Association) manual for software development.
This rule only applies to C. If you use certain characters in header file names, this can lead to undefined behavior.
The rule prohibits using the following character sets:
Example:
#include <bad"include.h>
#include "bad'include.h"
More often the diagnostic reveals the presence of a backslash in the path. MISRA sees this code as incorrect:
#include "myLibrary\header.h"
However, you can use a forward slash:
#include "myLibrary/header.h"
This diagnostic rule is classified as:
|
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: