Boost.Test Unit Testing: Dynamic Library support and New Item Template
If you’re just getting started and want to learn more about C++ Unit Testing, check out our guide. We are excited to announce that, in addition to Boost.Test static library support, Visual Studio 2017...
View ArticleC++ 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...
View ArticleSpectre mitigations in MSVC
Microsoft is aware of a new publicly disclosed class of vulnerabilities, called “speculative execution side-channel attacks,” that affect many operating systems and modern processors, including...
View ArticleVcpkg: Introducing the upgrade command
If you’re just getting started and want to learn more about vcpkg, check out our initial post. We recently added a new option to vcpkg (i.e. vcpkg contact –survey) to provide a direct way to share your...
View ArticleVisual Studio Code C/C++ extension Jan 2018 update
Today we are shipping the first update of the year to the Visual Studio Code C/C++ extension! This update includes IntelliSense and code navigation performance improvements and a CPU Usage setting for...
View ArticleC++ 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...
View ArticleVcpkg: introducing installation options with Feature Packages
We are happy to announce a new feature for vcpkg in version 0.0.103: Feature Packages. Vcpkg is a package manager to help acquiring and building open source libraries on Windows; vcpkg currently offers...
View ArticleVisual Studio Code C/C++ extension Feb 2018 update
The February 2018 update to the Visual Studio Code C/C++ extension is here! In addition to several bug fixes, this update added colorization for inactive code regions, making it easy to read C and C++...
View ArticleArithmetic 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...
View ArticleLinux C++ Workload improvements to the Project System, Linux Console Window,...
In Visual Studio 2017 15.7 Preview 1 we have made a number of improvements to our support to the Linux C++ workload based on your feedback. You can learn more about our Linux C++ workload in Visual...
View ArticleC++ 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,...
View ArticleClangFormat Support in Visual Studio 2017
⏱ Updated on March 14, 2018 to talk about which version of clang-format.exe we ship in the product. Visual Studio 2017 15.7 Preview 1 comes with built-in ClangFormat support for C++ developers....
View ArticleBuild Time Improvement Recommendation: Turn off /MAP, use PDBs
Map file is a plaintext file that contains information about where certain names and symbols exist in a binary produced by the linker. It also contain detailed information on all sections in your...
View ArticleC++ 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...
View ArticleConfiguring C++ IntelliSense and Browsing
Whether you are creating a new (or modifying an existing) C++ project using a Wizard, or importing an project into Visual Studio from another IDE, it’s important to configure the project correctly for...
View ArticleVisual Studio Code C/C++ extension March 2018 update
Today we are excited to announce the March 2018 update to the Visual Studio Code C/C++ extension! This update includes improved auto-complete for local and global scopes and a simplified configuration...
View ArticleMSVC now correctly reports __cplusplus
The MSVC compiler’s definition of the __cplusplus predefined macro leaps ahead 20 years in Visual Studio 2017 version 15.7 Preview 3. This macro has stubbornly remained at the value “199711L”,...
View ArticleC++ code analysis: configure rules from the command line
This post written by Sunny Chatterjee and Andrew Pardoe Visual Studio version 15.7 Preview 3 introduces a new MSVC compiler switch, /analyze:ruleset, that configures code analysis runs. The primary...
View ArticleSpectre mitigation changes in Visual Studio 2017 Version 15.7 Preview 3
With Visual Studio 2017 version 15.7 Preview 3 we have two new features to announce with regards to our Spectre mitigations. First, the /Qspectre switch is now supported regardless of the selected...
View ArticleCMake Support in Visual Studio – Targets View, Single File Compilation, and...
Visual Studio 2017 15.7 Preview 3 is now available, which includes several improvements to the CMake tools. The latest preview offers more control than ever over how to visualize, build, and manage...
View Article