C++ Team Blog

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

Latest posts

Aug 11, 2017
Post comments count 0
Post likes count 0

C++ Core Guidelines Checker in Visual Studio 2017

Andrew Pardoe

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 reasonable design decisions. The number of Core Guidelines recommendations may look discouraging for those who own legacy code, but even a gradual cleanup process will provide immediate improvements to your code without requiring a total rewrite. We've implemented a set of cod...

Aug 4, 2017
Post comments count 0
Post likes count 0

C++ Unit Testing Updates: Announcing Boost.Test Adapter and Improved Google Test Support

Augustin Popa

Back in May, the C++ team announced the Test Adapter for Google Test – a Visual Studio extension that allows you to run and manage your Google Test-based unit tests directly in Visual Studio. You can do this using the Test Explorer window, and, if you’re a Visual Studio Enterprise user, you can run a code coverage analysis to check for code that isn’t being tested. Since that time, our team has been working on improving our unit testing support even further. If you’re new to C++ unit testing with Visual Studio, you may want to check out the blog post, C++ Unit Testing in Visual Studio, for an overview. The test...

Jul 28, 2017
Post comments count 0
Post likes count 0

Trip report: Evolution Working Group at the Summer ISO C++ standards meeting (Toronto)

Andrew Pardoe

点这里看中文版 The Summer 2017 ISO C++ standards meeting was held in July 10-15 at the University of Toronto. Many thanks to Google, Codeplay, and IBM for sponsoring the event, as well to folks from Mozilla, Collège Lionel-Groulx, Christie Digital Systems, and Apple for helping to organize. And, of course, we very much appreciate Waterfront International for sponsoring a banquet at the CN Tower. We had a productive and rather harmonious Evolution Working Group (EWG) session this year in Toronto. There were 45 proposals discussed over five days and three evening sessions: a Tuesday night session on Concepts and...

Jul 21, 2017
Post comments count 0
Post likes count 0

Diagnostic Improvements in Visual Studio 2017 15.3.0

Yuriy Solodkyy

This post as well as described diagnostics significantly benefited from the feedback by Mark, Xiang, Stephan, Marian, Gabriel, Ulzii, Steve and Andrew. Visual Studio 2017 15.3.0 release comes with a number of improvements to the Microsoft Visual C++ compiler's diagnostics. Most of these improvements are in response to the diagnostics improvements survey we shared with you at the beginning of the 15.3 development cycle. Below you will find some of the new or improved diagnostic messages in the areas of member initialization, enumerations, dealing with precompiled headers, conditionals, and more. We will continu...

Jul 19, 2017
Post comments count 2
Post likes count 0

Using MinGW and Cygwin with Visual C++ and Open Folder

Will Buik

Building cross-platform C and C++ code is easier than ever with Visual Studio 15.3 Preview 4.  The latest preview improves support for alternative compilers and build environments such as MinGW and Cygwin.  MinGW (Minimalist GNU for Windows), in case you are not familiar with it, is a compiler in the GCC family designed to run natively on Windows.  If you are interested in a quick rundown of this new functionality, check out our latest GoingNative episode on Channel 9. Most MinGW installations, however, include much more than just a compiler.  Most distributions of MinGW include a whole host of other tools tha...

Jul 18, 2017
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension July 2017 Update – time to try out the new IntelliSense!

Rong Lu

2 million downloads! This is very exciting for the Visual Studio Code C/C++ extension, considering it was just 4 months ago when we hit the 1 million milestone! Today we are shipping the July 2017 update to the extension. Besides several bug fixes, we are continuing to polish the new IntelliSense experience that we shipped last month. This new experience continues to be on by default for VS Code Insiders and off for everyone else, but we encourage everyone to try out the new, improved IntelliSense! You will get improved, more accurate results for several IntelliSense features, including auto-complete suggestions...

Jul 13, 2017
Post comments count 5
Post likes count 2

Precompiled Header (PCH) issues and recommendations

Ulzii Luvsanbat [MSFT]

This post written by Mark Hall, Xiang Fan, Yuriy Solodkyy, Bat-Ulzii Luvsanbat, and Andrew Pardoe. Precompiled headers can reduce your compilation times significantly. They’ve worked reliably for millions of developers since they were introduced 25 years ago to speed up builds of MFC apps. Precompiled headers are widely used: they are enabled by default for new Visual C++ projects created in the IDE and similarly provide substantial performance wins in our intellisense architecture. How do precompiled headers speed up your build? For a given project, most source files share a common set of header files (esp...

Jul 11, 2017
Post comments count 0
Post likes count 0

Microsoft Visual Studio 2017 Supports Intel® AVX-512

Eric Battalio

For this post we welcome John Morgan from Intel Corporation as guest author on the Visual Studio Blog. John has been with Intel for nine years, but his contributions to the Microsoft compiler stretch back through two decades and three other companies. He gratefully acknowledges help with this post from others at Intel and Microsoft. This post explores Intel® Advanced Vector Extensions 512 (Intel AVX-512), and how they are supported in Microsoft Visual Studio 2017, particularly in Microsoft Visual C++, Microsoft Macro Assembler (MASM), and the Microsoft Visual Studio IDE debugger, along with typical applications ...

Jun 30, 2017
Post comments count 1
Post likes count 0

June C++ Link Roundup

Eric Battalio

C++ link roundup for June: If you have links for next month's collection, please share in the comments. Thank you.