![]() |
![]() |
1026 | ![]() |
||||
![]() | |||||||
| Language extensions | |||||||
Whenever QAC encounters the @ symbol followed by '_ignore_at', the two tokens are ignored and message 1026 is generated. This mechanism is useful because the @ character is sometimes used as a prefix to non-standard keywords which are language extensions. By redefining the appropriate keyword as '_ignore_at' (usually by configuring a macro with the -d option), QAC can be configured to ignore this syntax. For example:
/*PRQA S 289,292,2017,3211,3408 ++*/
/********************************
* OPTIONS: -d tiny=_ignore_at
*******************************/
int @_ignore_at x ; /* Message 1026 */
@tiny int y; /* Message 1026 */
#define RUBBISH _ignore_at
@RUBBISH short @RUBBISH z; /* Message 1026 and 1026 */
MISRA-C:2004 Rules applicable to message 1026:
| Rule 1.1 (Required) | All code shall conform to ISO/IEC 9899:1990 C programming language, ISO 9899, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2: 1996192 |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |