The Wayback Machine - https://web.archive.org/web/20220402092920/https://devblogs.microsoft.com/cppblog/

C++ Team Blog

C++ tutorials, C and C++ news, and information about Visual Studio, Visual Studio Code, and Vcpkg from the Microsoft C++ team.

C++ Modules in CMake with Visual Studio
C++ Modules in CMake with Visual Studio
We’ve seen a lot of excitement around C++ modules since we announced support in the Microsoft C++ compiler and Visual Studio. Ever since, the community has been asking us when CMake support was coming. I am happy to announce that Visual Studio 2022 17.2 Preview 2 has experimental support for C++ modules in CMake projects. One caveat for this...
Visual Studio for remote macOS C++ development
Visual Studio for remote macOS C++ development
The latest preview version of Visual Studio is now available to download. In this latest release, users wishing to develop cross platform C++ applications for macOS can now make use of Visual Studio’s Linux tools with CMake to target the Mac. There is some setup required on the Mac side to enable the support, but then the Mac is treated just...
Execution and Static Analysis Support for MSVC on Compiler Explorer
Execution and Static Analysis Support for MSVC on Compiler Explorer
Compiler Explorer is a popular resource for visualizing the assembly output of various compilers, trying out different compiler versions and flags, and testing many popular libraries. We're pleased to announce that, as of today, code execution and static analysis are now available for MSVC on Compiler Explorer. Execution on CE has been one ...
How we used C++20 to eliminate an entire class of runtime bugs
How we used C++20 to eliminate an entire class of runtime bugs
C++20 is here and has been supported in MSVC since 16.11, but today's post is not about how you can use it, but rather how we used it to effectively eliminate an entire class of runtime bugs by hoisting a check into compile-time. Let's get right into it! Humble beginnings In compiler design one of the very first things you need is a way to ...
Visual Studio Code C++ December 2021 Update: clang-tidy
Visual Studio Code C++ December 2021 Update: clang-tidy
The latest insiders release of the C++ extension is here, bringing clang-tidy support to VS Code! Clang-tidy is a clang-based C++ linter tool that detects common errors in your code, like style violations and bugs that can be deduced via static analysis. Clang-tidy integration was one of our top asks on GitHub, so we’re excited to announce ...
The /fp:contract flag and changes to FP modes in VS2022
The /fp:contract flag and changes to FP modes in VS2022
The /fp:contract flag and changes to FP modes in VS2022 In this blog we will cover a new feature we have added to the MSVC version 17.0 compiler in VS2022 that impacts the generation of Floating-Point contractions such as Fused Multiply Add (FMA) instructions. We will cover how FMA contractions are supported in pre-VS2022 MSVC compiler ...