More MISRA C and C++ checks

We continue our work on extending the list of supported checks. You can find the current list of supported checks on our confluence page here. We keep this page updated so that you can easily get a sense of the current state of the support, i.e. how many checks are covered by CLion. We’ve added a few new rules this week:

  • The condition of an if-statement and the condition of an iteration-statement shall have type bool. The first operand of a conditional-operator shall also have type bool.
  • Named bit-fields with signed integer type shall have a length of more than one bit.
  • A few rules for throwing, like NULL shall not be thrown explicitly, and an empty throw (throw;) shall only be used in the compound-statement of a catch handler.

We’d like to remind you that MISRA inspection settings can be found in CLion in Settings/Preferences | Editor | Inspections | C/C++ | General | MISRA Checks. You can configure the list of C and C++ checks to run on your project.

#early access program #news #2021.1 #core dumps #misra #newsletter-cpp

CLion 2021.1 EAP: New MISRA C and C++ Checks, and Core Dump Debug Enhancements
1.20 GEEK