Product News

GCC 11 Release Series

Improved.

GCC 11 Release Series

From the article:

This page is a "brief" summary of some of the huge number of improvements in GCC 11. You may also want to check out our Porting to GCC 11 page and the full GCC documentation.

PVS-Studio Learns What strlen is All About

Somehow, it so happens that we write about our diagnostics, but barely touch upon the subject of how we enhance the analyzer's internal mechanics. So, for a change, today we'll talk about a new useful upgrade for our data flow analysis.

PVS-Studio Learns What strlen is All About

by Andrey Karpov

From the article:

Can you see it? To be honest, we did not notice it immediately and our first thought was, "Oh no, we broke something!" Then we saw what was up and took a minute to appreciate the advantages of static analysis. PVS-Studio warned: V512 A call of the 'strcpy' function will lead to overflow of the buffer 'astr'. asm.cpp 21 Still don't see the error? Let's go through the code step by step.

Clang 12.0.0 is released

Continuing to improve.

Clang 12.0.0 is released

From the article:

This document contains the release notes for the Clang C/C++/Objective-C frontend, part of the LLVM Compiler Infrastructure, release 12.0.0. Here we describe the status of Clang in some detail, including major improvements from the previous release and new feature work. For the general LLVM release notes, see the LLVM documentation. All LLVM releases may be downloaded from the LLVM releases web site.

For more information about Clang or LLVM, including information about the latest release, please see the Clang Web Site or the LLVM Web Site.

Note that if you are reading this file from a Git checkout or the main Clang web page, this document applies to the next release, not the current one. To see the release notes for a specific release, please see the releases page...

Visual Studio Code C++ Extension April 2021 Update--Julia Reid

Are you using it?

Visual Studio Code C++ Extension April 2021 Update: CUDA C/C++ IntelliSense and Apple Silicon Support

by Julia Reid

From the article:

The April 2021 update of the Visual Studio Code C++ extension is now available! This latest release offers brand new features—such as IntelliSense for CUDA C/C++ and native language server support for Apple Silicon— along with a bunch of enhancements and bug fixes. To find out more about all the enhancements, check out our release notes on GitHub...

CppDepend 2021.1 Released! -- CoderGears Team

This is the press release of the new version of CppDepend 2021.1 static analysis tool. Click on the link below to see these features and product improvements.

CppDepend v2021.1: New Coding standards rules

by CoderGears Team

From the article:

New coding standards are now supported (Cert C, Cert C++, Misra C, Misra C++, CWE, and Autosar). Gap between code implementation and UML. Improved exclusion mechanism. The latest Clang version is now embedded. The latest CppCheck version is now embedded.

Download and enjoy the new version of CppDepend now by clicking here.

 

CLion 2021.1: New Code Analysis Options, Updates to Remote Mode, and...--Anastasia Kazakova

Time to test it?

CLion 2021.1: New Code Analysis Options, Updates to Remote Mode, and Postfix Completion

by Anastasia Kazakova

From the article:

This new version provides an overhaul for code analysis, allowing it to catch more potential issues and guideline inconsistencies, enhances the debugging experience, and improves the capabilities of remote mode. In addition to the improved C and C++ experience, CLion 2021.1 introduces updated Rust and Swift support and valuable changes from the IntelliJ Platform...

Finding Bugs with AddressSanitizer: MSVC Compiler--Augustin Popa

A very useful tool.

Finding Bugs with AddressSanitizer: MSVC Compiler

by Augustin Popa

From the article:

The AddressSanitizer (ASan) is generally available for MSVC since the recently-released Visual Studio 2019 version 16.9. We’ve already shown how easy it can be to find bugs in even production-ready code like EASTL. Here I’ll share an example of how it found a real bug in the MSVC compiler itself.

The idea was straightforward: ASan finds bugs, and we’re always interested in finding bugs in the compiler. Just like you can turn ASan on in your projects and run your tests, we’ve been turning on ASan on our project (the compiler) and running it on our tests. Sure enough, this found bugs...

ReSharper C++ 2021.1: Syntax Style, New C++ Features, and Improved Unreal Engine Support

ReSharper C++ 2021.1 is released!

ReSharper C++ 2021.1: Syntax Style, New C++ Features, and Improved Unreal Engine Support

by Elvira Mustafina

About the release

ReSharper C++ 2021.1 brings support for several new C++20 and C++17 language features, adds new inspections, and improves Unreal Engine support. You can now configure ReSharper C++ to match your code style even more closely with a new set of syntax style settings. The accompanying quick-fixes and context actions help you keep your code style consistent and update your code with ease.

  • C++ support: class types in non-type template parameters, C++20 class template argument deduction rules, noexcept as a part of the function type, and code completion for coroutines.
  • Unreal Engine: initial support for Unreal Engine 5, a postfix template for Cast, and support for the RIGVM_METHOD reflection macro.
  • Syntax style: a new set of code style settings for various aspects of the C++ syntax with accompanying inspections, quick-fixes, and context actions.
  • Code cleanup: new code cleanup tasks, the Cleanup selection context action, and performance improvements.
  • Code analysis: inspections with quick-fixes for redundant casts, template arguments that can be deduced, and variables that can be moved to the inner scope.

CLion 2021.1 release: global DFA, postfix completion, more MISRA checks, and other changes

CLion 2021.1 is released!

CLion 2021.1: New Code Analysis Options, Updates to Remote Mode, and Postfix Completion

by Anastasia Kazakova

About the release:

The CLion 2021.1 release is here! It catches more potential code quality issues,
enhances the debugging experience, and brings a more capable remote mode.

  • Code analysis
    • Global DFA is added and takes a whole translation unit of a program as a single unit for analysis to capture more potential issues.
    • New checks from MISRA C 2012 and MISRA C++ 2008 are introduced.
    • Clazy, a Qt-oriented static code analyzer, is now integrated into CLion.
  • Dynamic analysis tools
    • CLion can now calculate branch coverage.
    • Google Sanitizers, Valgrind Memcheck, and code coverage now works with remote toolchains.
  • Postfix completion for C and C++.
  • A new Open Project wizard.
  • Debugger:
    • GDB and LLDB have reached feature parity for core dump debugging in CLion.
    • Move execution point now works in the disassembly view.
  • For CMake projects:
    • Bundled CMake is upgraded to 3.19.
    • An ability to share CMake Profiles in VCS.
  • For Makefile projects:
    • Initial support for remote Makefile projects.
    • The Makefile Language plugin is now bundled into CLion.
  • VCS
    • Profile for pre-commit inspections.
    • Git commit templates.
  • Code With Me, a new JetBrains service for collaborative development and pair programming, is now bundled with CLion.

PVS-Studio Beta plugin for CLion (Win\Linux\macOS): It's less than a month away

PVS-Studio Beta plugin for CLion (Win\Linux\macOS). It's less than a month away. Want to be the first to try it? Just sign up here.

PVS-Studio Early Access Program

by PVS-Studio Team

Description:

PVS-Studio is a static analyzer that detects errors and potential vulnerabilities in the source code of programs written in C, C++, C#, and Java. In 2021 we are planning to release the PVS-Studio plugin for C++ IDE – CLion.