Synopsis: | When used, the line-splicing character ('\' at the end of a line) shall immediately be followed by the newline character. |
Language: | C |
Severity Level: | 6 |
Category: | Preprocessing Directives |
Description: |
Justification This avoids undefined behavior according to the C standard. Characters following the line-splicing character might break tools that can't handle this. For example, the CScout tool has problems with trailing spaces, thus resulting in partial cross reference data. Example #define DEFINE_VERY_LONG_MACRO_NAME \ /* comment */ 1234 /* WRONG */ #define DEFINE_VERY_LONG_MACRO_NAME \ 1234 /* RIGHT */ |