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 feedback. This feedback helped us improve the quality of the final released version of C++ Core Guidelines checks. Some of these improvements are explained in detail in this blog post about
Besides shipping the C++ Core Guidelines checker, we also fixed more than 150 bugs in our core analysis engine. All of these fixes are available in the Visual Studio 2017 RTM. As a result, developers should expect to see accuracy improvements in C++ code analysis. Download Visual Studio 2017 today and let us know what you think of the improvements to code analysis!
Here are some notable fixes that were frequently reported. These fixes were made as a result of direct external feedback.
- False positive during dereferencing null-pointer checks (C6011)
- False positive during uninitialized memory checks (C6001)
- False positive around inconsistent annotation checking (C28252 and C28253)
- False positive during annotation parsing (C28285)
- False positive during strict type match checking (C28039)
- False positive when checking for local vs. global declarations on enum classes (C6244)
- MSBuild error MSB4018 during code analysis runs: The “MergeNativeCodeAnalysis” task failed unexpectedly
Send us your feedback!
We hope that the C++ Code Analysis tools in Visual Studio 2017 help improve your code and make you more productive. We’d like to thank you all and as always, we welcome your feedback. Please tell us what you like and dislike about our current toolset and what you’d like to see in future releases.
For problems, let us know via the Report a Problem option, either from the installer or the Visual Studio IDE itself. And you can always reach us through e-mail at firstname.lastname@example.org.