![]() |
![]() |
4821 | ![]() |
||||
![]() | |||||||
| 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. 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.
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.
Example:
// PRQA S 100 // Ok, no tag specified
// PRQA S:S1 100 // Ok, tag specified
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |