Rule 20.3 space after #include - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21) +---- Forum: 8.20 Preprocessing directives (https://forum.misra.org.uk/forumdisplay.php?fid=175) +---- Thread: Rule 20.3 space after #include (/showthread.php?tid=1150) |
Rule 20.3 space after #include - misra-c - 13-02-2015 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 ? */ Re: Rule 20.3 space after #include - misra-c - 13-02-2015 The number or absence of spaces and comments are irrelevant. Both examples are compliant. |