Re: MISRA-C and Zephyr
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]. 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. [1] http://cppcheck.net/misra.php [2] https://github.com/rettichschnidi/clang-tidy-misra Kind regards, Reto
|
|