![]() |
![]() |
1029 | ![]() |
||||
![]() | |||||||
| Language extensions | REFERENCE - ISO:C90-5.1.1.2 Translation Phases | ||||||
A backslash ('\') located as the final character in a line of code is used in the C language as a means of splicing two physical lines together into a single logical line of code. However in the ISO:C Standard this syntax is only recognised when the blackslash character immediately precedes the new-line character. If any whitespace characters are encountered between the backslash and the new-line character, the sequence will not be recognised. This behaviour can be modified by using the -slashwhite+ language extension option which instructs QA·C to ignore any trailing whitespace characters. Message 1029 is generated to indicate that whitespace characters have been encountered and ignored. For example:
/*PRQA S 553,2017,3429,3435,3456,3459 ++*/
/************************************
* OPTIONS: -sl+
***********************************/
/* Message 1029 will be generated on the following
statement if there are whitespace characters
following the \ */
#define M_1904(x) /* Message 1029 */ \
do { \
if ((x) < 200) \
{ \
(x) = (x) + 1; \
} \
else \
{ \
(x) = 200; \
} \
} while (0)
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |