[previous] 4810 [next] Invalid annotation: tag 'locTag' is not defined subsequently in this file.
Annotations

When creating a Location or Suppression range, both the start and end location annotations must appear in the same file.

Example:


// f.h
// PRQA L:L2


// f.cc
// PRQA S 200 L2    // ERROR - L2 not found in this file.
#include "f.h"


// PRQA S 100 L1    // OK - L1 does appear in this file

// PRQA L:L1

An exception to this rule is for annotations in files listed in the forceinclude option. All annotations in the force include are treated as if they appear on line 0 column 0 of the main source file.

Example:


// fi.h
// PRQA S 100 L1


// f.cc - command line option -forceinclude 'fi.h'
int i;                    // Message 100 will be suppressed for this declaration

// PRQA L:L1

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents