[previous] 4811 [next] The start of the range 'locTag', starts and ends at the same location.
Annotations

When creating a Location or Suppression range, the start and end annotations cannot appear on the same line.

For Example:

/* PRQA S 100 L1 */ int i; /* PRQA L:L1 */               // ERROR - start end on same line

// PRQA S 100 L2
int j; // PRQA L:L2                                      // CORRECT

Suppression and location annotations start and end on a complete line, rather than specific columns, therefore an annotation on line 1 of a file will affect the complete line - irrespective of the column of the annotation.

For Example:

/* PRQA S 100 */ int i;             // Message 100 suppressed for 'i'
int j;  /* PRQA S 100 */            // Message 100 suppressed for 'j'


No MISRA C:2012 Rules applicable to message 4811


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents