C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

C++ Core Checks in Visual Studio 2017 15.7 Preview 2

This post was written by Sergiy Oryekhov. The C++ Core Guidelines Check extension received several new rules in Visual Studio 2017 15.7 Preview 2. The primary focus in this iteration was on the checks that would make it easier to adopt utilities from the Guidelines Support Library. Below is a quick summary of these additions. For more ...

C++ Code Analysis Improvements for Visual Studio 2017 15.7 Preview 1

点这里看中文版 We're making it easier to configure and use the C++ code analysis features with a set of changes targeting 15.7. In the first 15.7 preview we've cleaned up the UI, fixed our documentation links and, most importantly, simplified the way analysis extensions are configured.  If you're not familiar with C++ Core Check, it's...

Arithmetic overflow checks in C++ Core Check

点这里看中文版 We've improved the C++ Code Analysis toolset with every major compiler update in Visual Studio 2017. Version 15.6, now in Preview, includes a set of arithmetic overflow checks. This article discusses those checks and why you’ll want to enable them in your code. If you’re just getting started with C++ Code Analysis ...

C++ Core Check in Visual Studio 2017 15.6 Preview 2

点这里看中文版 This post was written by Sergiy Oryekhov. Note that some of the links to docs.microsoft.com do not yet resolve. Not all of the official documentation has yet been written for this topic. Visual Studio 2017 15.6 Preview 2 includes a set of updates to the C++ Core Guidelines Check extension. We added more checks to help ...

C++ Static Analysis Improvements for Visual Studio 2017 15.6 Preview 2

点这里看中文版 We've made a few changes to the C++ static analysis feature that should make it faster and easier to use. The behavior has changed slightly, and the menus have been moved around a bit, but we think that the new experience is faster and more consistent. Let's take a quick look at the changes. Single File Analysis ...

C++ Core Check improvements in Visual Studio 2017 15.5

点这里看中文版 This post was written by Sergiy Oryekhov. In Visual Studio 2017 version 15.5 Preview 4 we have refreshed our C++ Core Guidelines Check extension for native code static analysis tools. Most of the work since 15.3 has been focused on new rules that will help developers starting new projects write safer C++ and those with...

C++ Code Analysis improvements in Visual Studio 2017 RTM

This blog post was written by Sunny Chatterjee and Andrew Pardoe Visual Studio 2017 RTM  release includes the C++ Core Guidelines Checkers as part of Code Analysis tools for C/C++. We have gotten a ton of useful feedback on the early previews of these checks through our external customers. Thank you for engaging with us and giving us great ...

Check for const correctness with the C++ Core Guidelines Checker

This blog post was written by Sunny Chatterjee and Andrew Pardoe The C++ Core Guidelines focus on simple ways that you can improve the correctness and safety of your code. We introduced the C++ Core Guidelines Checkers to help automate enforcement of the C++ Core Guidelines in your code. One of the easiest and most important changes you can ...

C++ Core Check code analysis is included with VS 2017

Visual Studio "15" Preview 5 now includes the C++ Core Guidelines Checkers. This means you no longer have to install the C++ Core Check package from NuGet to check your code against rules and profiles in the C++ Core Guidelines. Just configure Code Analysis to include the C++ Core Check extensions. You can configure Code Analysis in the ...

C++ Core Guidelines Checkers are now in a single NuGet package

Update: The C++ Core Guidelines Checkers are now included in-box with Visual Studio 2017. See this post for details: https://blogs.msdn.microsoft.com/vcblog/2016/10/12/cppcorecheck It has been an exciting year since the C++ Core Guidelines and checkers were announced starting with Bjarne Stroustrup's opening keynote at CppCon 2015. We've ...