SonarSource is pleased to announce the release of the C/C++/Objective-C plugin version 4.2.
This new version provides the following 8 new rules:
- “nonnull” pointers should not be set to null (C, Bug)
- “switch” statements should cover all cases (C++, C, Objective-C, Code Smell, suspicious)
- File names should comply with a naming convention (C++, C, Objective-C, Code Smell, cert, convention)
- GNU extensions should not be used (C++, C, Objective-C, Code Smell, lock-in, obsolete)
- Overriding virtual functions should be declared with “virtual” (C++, Code Smell, misra)
- Reference types should not be qualified with “const” or “volatile” (C++, Code Smell, cert, lock-in, unused)
- Unused function parameters should be removed (C++, Code Smell, cert, misra, unused)
- Virtual functions should not have default arguments (C++, Code Smell, api-design, cert, pitfall)
Moreover, the introduction of the “System Integrity Framework” in Mac OS X EL Capitan was preventing the use of the build-wrapper. This annoying compatibility issue has been fixed in this version.
And finally, in addition to the support of coverage reports generated by Gcov, the SonarQube C/C++/Objective C plugin is now also able to import llvm-cov code coverage reports that can be generated from a XCode 8 development environment. Here is a sample project helping to quickly understand how to generate and import such code coverage reports.
Please read the release notes for more information about all the other improvements and bug fixes part of this release.
You can install or update it via the Update Center.