Re: MISRA-C and Zephyr

Jiří Kubias <jiri.kubias@...>

I have one practical question regarding MISRA-C standard. Where I can get the standard as a regular coder? I can buy one for £15 + VAT, but I dont thing that every body want to buy it. Is there any public description of this standard? There are many of us who never met with MISRA standard.

 Jiri Kubias 

2018-09-16 23:20 GMT+02:00 Flavio Ceolin <flavio.ceolin@...>:

Hi Reto,

> On 09/15/2018 06:07 AM, Kumar Gala wrote:
>> Not support MISRA directly, but I assume we can implement the MISRA checks either by configuring specific rules of cppcheck or implementing our own.  If there’s some MISRA checker out there, even better.
> Cppcheck has some MISRAC C 2012 checks for a while now [1].

Yeah, last time I've checked it was requiring the MISRA-C standard
converted to a pure text. The problem is that we can distribute
MISRA-C. Though, I'll check if the standard is only required for
pretty-print the errors.

> Also, it is quite simple to add such checks to clang-tidy [2]. I am no
> longer working in a safety relevant area, so I did not push this pet
> project in the past, but extending it for Zephyrs needs would probably
> be a good reason to do so.

Good to know :)

> [1]
> [2]
> Kind regards,
> Reto

Flavio Ceolin

Ing. Jiri Kubias
e-mail: jiri.kubias@...
mobile: 775 593 956

Join to automatically receive all group messages.