C++ Team Blog

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

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...

How to use the C++ Core Guidelines Checker outside of Visual Studio

This post written by Sergiy Oryekhov and Andrew Pardoe The latest C++ Core Guidelines Checker is deployed as a part of the Native Code Analysis tools in Visual Studio 2017 15.3. These tools are designed for use in Visual Studio, which provides a rule set editor for filtering warnings. But what if you want to adopt the C++ Core Guidelines ...

Managing warnings in the C++ Core Guidelines Checker

This post written by Sergiy Oryekhov and Andrew Pardoe With several new rules added to the Core Guidelines Checker in Visual Studio 2017 15.3, the amount of warnings produced for pre-existing code may greatly increase. The C++ Core Guidelines include a lot of recommendations that cover all kinds of situations in C+ code. We know that not ...

C++ Core Guidelines Checker in Visual Studio 2017

This post written by Sergiy Oryekhov and Andrew Pardoe The C++ Core Guidelines can help improve your code and decrease your cost of maintenance by offering a wide range of recommendations: encouraging use of the standard library, avoiding use of unsafe practices whenever possible, maintaining a consistent style, and helping you to enforce ...

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 ...

C++ Core Guidelines Checkers available for VS 2015 Update 1

[This post was written by Andrew Pardoe and Neil MacIntosh] Update: The CppCoreCheck tools are now part of VS 2017: https://blogs.msdn.microsoft.com/vcblog/2016/10/12/cppcorecheck. Back in September at CppCon 2015 Neil announced that we would be shipping new code analysis tools for C++ that would enforce some of the rules in the C++ Core...