Menu

basic misra c2012 coverage done

2021-07-22
2021-07-22
  • Daniel Marjamäki

    As I see it Cppcheck and the misra addon and some help from gcc, now has coverage of all the original misra c2012 rules.

    there are currently 3 rules not covered by Cppcheck and the misra addon:
    1.1, 1.2, 17.3

    the rules 1.1 and 1.2 will never be covered I think users will have to rely on their compiler (or gcc) for those.

    the rule 17.3 is tricky because we don't want to include system headers in cppcheck analysis.. but gcc has corresponding diagnostics (-Wimplicit-function-declaration). For now gcc must be used for rule 17.3.

    I plan to implement the misra c2012 amendments later also.

     
    • Daniel Marjamäki

      As you probably know.. you can use python3 misra.py -generate-table to see if a rule is covered by Cppcheck or if it is covered by the addon.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.