![]() |
![]() |
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:2012 Rules applicable to message 1026:
| Rule-1.2 (Advisory) | Language extensions should not be used |
![]() | ||
| 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 |