TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.10.4.bChecked automatically with code checker

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 */