![]() |
![]() |
4810 | ![]() |
||||
![]() | |||||||
| Annotations | |||||||
When creating a Location or Suppression range, both the start and end location annotations must appear in the same file.
For 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.
For 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
No MISRA C:2012 Rules applicable to message 4810
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 |