MISRA Discussion Forums

Full Version: Rule 20.3 space after #include
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The amplification to rule 20.3 states that the rule applies "after macro replacement" has been performed. Is the number/absence of spaces and comments between #include and the " or < irrelevant?

So for example:
#include              /* no space - compliant ? */
#include/* comment*/  /* compliant  ? */.
The number or absence of spaces and comments are irrelevant. Both examples are compliant.