Support for Analysis from Linux ARM 64-bit machines, MISRA C++2023-inspired rule hardening and more

Here comes some more exciting value delivered to your C and C++ analysis.

First, you can analyze your code from Linux aarch64 machines. It will allow you to:

  • Integrate the SonarQube or SonarCloud analysis on CIs running on cheaper and increasingly popular Aarch64 hardware running Linux.
  • Run SonarLint on aarch64 Linux machines, including virtualized environments on macOS with Apple Silicon chips.

Second, we took inspiration from MISRA C++2023 to improve and align some of our rules with the latest best practices. The reworked rules are:

  • S2807: Binary operators should be overloaded as “friend” function
  • S4962: “nullptr” should be used to denote the null pointer
  • S960: Function-like macros should not be used
  • S3624: When the “Rule-of-Zero” is not applicable, the “Rule-of-Five” should be followed
  • S4963: The “Rule-of-Zero” should be followed
  • S1699 “Virtual functions should not be called from constructors or destructors”
  • S3630 “reinterpret_cast" should not be used
  • S1265 “operator delete” should be written along with "operator new”

Finally, we also added support for one of C++23’s most expected features: deducing this.

All these will be available with SonarQube 10.6 starting from Developer Edition. They will be available shortly on SonarCloud and soon on SonarLint.

As always, you can see what’s coming next and vote for C and C++ features you would like to see in SonarQube , SonarCloud , and SonarLint .

Cheers

3 Likes