>
>
PVS-Studio 7.07

Sviatoslav Razmyslov
Articles: 90

PVS-Studio 7.07

While production gets suspended and companies close down all over the world, software developers keep working remotely. Our team is no exception, and today we are announcing a new release. This time we've been focusing on enhancing stability.

Bug fixed and lessons learned

Between our own recent releases, Microsoft has issued a number of updates for Visual C++ with elementary support of C++20 features such as concepts. Usually companies don't rush to update compilers because the freshest versions may have stability issues. But some do, including a few of our users. They encountered the following error:

V003 Unrecognized error found: PtreeCpp11Initializer was constructed incorrectly. Consider inspecting the '__cdecl VivaCore::PtreeCpp11Initializer::PtreeCpp11Initializer(const char *,class VivaCore::Ptree *,class VivaCore::Ptree *)' constructor.

We are glad to announce that this bug is fixed in PVS-Studio 7.07, so you can now enjoy the support of concepts. It should be mentioned, though, that supporting new standards is different with compiler developers from what it is with analyzer developers. It's pretty painless for us, and that bug didn't take long to fix. But we've got to come up with a way to sync our updates with compiler updates in the future.

New diagnostics

In addition to stability improvements and implementing new products (more on this in a second), we implemented several new diagnostics:

  • V1053. Calling the 'foo' virtual function in the constructor/destructor may lead to unexpected result at runtime.
  • V1054. Object slicing. Derived class object was copied to the base class object.
  • V1055. The 'sizeof' expression returns the size of the container type, not the number of elements. Consider using the 'size()' function.
  • V2573. MISRA. Identifiers that start with '__' or '_[A-Z]' are reserved.

SonarQube plugin

A long time ago, we released a plugin for SonarQube with Windows and Linux support. It had no macOS support because there was no demand for it until recently, but now that people started asking for it, we've added that too. See the updated documentation.

C# analyzer for Linux and macOS

Remember I mentioned the new products? These are a C# analyzer for Linux and macOS and a JetBrains Rider plugin, neither of which, unfortunately, will be available in this new release, despite our plans. But we did a big job developing them, and they are ready now. About a month ago, we announced Beta testing – we are going to launch it right after the release, so if you haven't applied yet, you still can do so.

Other updates

  • Added support of the TeamCity CI server to the utility for converting PVS-Studio's XML reports (PlogConverter).
  • Added flags ‑‑selectProjects / ‑‑excludeProjects to select individual projects for analysis in the command line checker for Visual Studio \ MSBuild projects (PVS-Studio_Cmd.exe).