![]() |
|
MISRA C:2012 Rule-3.2: (Required) |
|
||||
![]() | |||||||
Amplification:
Line-splicing occurs when the \ character is immediately followed by a new-line character. If the source file contains multibyte characters, they are converted to the source character set before any splicing occurs.
Example Code:
#pragma PRQA_MESSAGES_OFF 1011
#include "misra.h"
#include "m3cmex.h"
extern int16_t rule_0302( void )
{
int16_t x = 1; /* 5134 */ // comment \
if (bla)
{
x = x + s16a; /* This is always executed */
}
++x;
return x;
}
QAC messages that encompass this guideline:
| 5134 | C++ style comment uses line splicing. |
|
||
(c) The Motor Industry Research Association, 2012
|
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |