Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 20.3 space after #include
#1
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:
Code:
#include              /* no space - compliant ? */
#include/* comment*/  /* compliant  ? */.
Posted by and on behalf of the MISRA C Working Group
#2
The number or absence of spaces and comments are irrelevant. Both examples are compliant.
Posted by and on behalf of the MISRA C Working Group


Forum Jump:


Users browsing this thread: 2 Guest(s)