System headers vs MISRA

Technical Note 160905

Architectures:

all

Component:

compiler

Updated:

2016/10/17 10:57

Introduction

Running MISRA checks on a system header file might result in a warning for one or more MISRA rule violations.

Discussion

System header files are not required to comply with MISRA rules (see, for example, MISRA C-2012, section 6.7).

The suggested solution is not to run MISRA checks on system header files.

IAR MISRA checkers

By design and default, IAR MISRA checkers do not check system header files for MISRA rule violations.

Please contact IAR support if you find otherwise.

Conclusion

If possible, avoid running MISRA checks on system header files.

 

All product names are trademarks or registered trademarks of their respective owners.

很抱歉,该页面尚未翻译成中文。

如果您有任何问题,请联系我们的中国团队

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.