[previous] 4821 [next] Colon is expected.
Annotations

The annotation tag in a Location annotation creates a name for a line of source code which can be referred to from other annotations.

For example:

// PRQA S 100 L1                // Refers to location L1 further down.

// PRQA L:L1                    // This line taged as 'L1'

A location annotation must therefore specify an annotation tag when it is used. The tag name is specified after the ':' in the location annotation. It is therefore an error to omit the ':' in the location annotation.

For example:

// PRQA L L1           // ERROR: Missing ':'

In a suppression annotation, the annotation tag is optional and so it is only necessary to provide the ':' if an annotation tag is required.

For example:

// PRQA S 100                   // Ok, no tag specified
// PRQA S:S1 100                // Ok, tag specified


No MISRA C:2012 Rules applicable to message 4821


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