Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free tools to check compliance with MISRA C? [closed]

Tags:

c

standards

misra

Are there any open-source or free tools out there, that check the MISRA C compliance?

like image 988
Vladimir Keleshev Avatar asked Feb 18 '11 16:02

Vladimir Keleshev


1 Answers

Cppcheck (free and open source) has an official addon allowing to check MISRA-C 2012 rules.

The way to do so:

  1. cppcheck --dump file.c
  2. python misra.py file.c.dump

You can simply find misra.py in your Cppcheck installation or here: https://github.com/danmar/cppcheck/blob/master/addons/misra.py

like image 57
begarco Avatar answered Oct 14 '22 07:10

begarco