| title | What's new for the C++ docs |
|---|---|
| ms.date | 06/14/2021 |
| description | The new docs and doc updates for the Microsoft C/C++ compiler, ATL/MFC, C runtime, and standard library docs. |
This article lists some of the major changes to docs for Visual Studio version 16.8.
For information about what's new in Visual Studio, see What's new for C++ in Visual Studio.
For the latest C and C++ conformance status, see C++ conformance improvements in Visual Studio
- Parsing C Command-Line Arguments - Document exceptions to the rules for parsing C arguments
- Type Qualifiers - Added
restrict - C Assignment Operators - Lexical grammar update for C17
- C Keywords - Lexical grammar update for C17
- C Lexical grammar - Lexical grammar update for C17
- Summary of Declarations - Lexical grammar update for C17
- Summary of Expressions - Lexical grammar update for C17
- C enumeration declarations - Fixed lexical grammar
- Summary of C statements - Updated for
__leave,__trykeywords
qsort- Added note about stability_cwait- Fixed code example- Function family overview - Added operator
newanddelete round, roundf, roundl- Clarified rounding code example- Compatibility - Added C99 conformance notes
realloc- Added C99 conformance notes- CRT Library Features - Added C99 conformance notes
assert Macro, _assert, _wassert- Clarified assert behaviorvsnprintf_s, _vsnprintf_s, _vsnprintf_s_l, _vsnwprintf_s, _vsnwprintf_s_l- Clarified return valuessetlocale, _wsetlocale- Added C Runtime UTF-8 support info
- Predefined macros - Updated to 16.8 release notes, C11/C17
/stdsupport and SDK install docs - MSVC new preprocessor overview - Updated preprocessor content
- C33001 - VC Code Analysis - add for new rules in 16.8
- C33004 - VC Code Analysis - add for new rules in 16.8
- C33005 - VC Code Analysis - add for new rules in 16.8
- C33010 - VC Code Analysis - add for new rules in 16.8
- C33011 - VC Code Analysis - add for new rules in 16.8
- C33020 - VC Code Analysis - add for new rules in 16.8
- C33022 - VC Code Analysis - add for new rules in 16.8
C6262- Address cpp-docs.zh-tw issue 20C26497 USE_CONSTEXPR_FOR_FUNCTION- Added example to C26497C26496 USE_CONST_FOR_VARIABLE- Added example to C26496C26495 MEMBER_UNINIT- Updated examples and links in C26495C26483 STATIC_INDEX_OUT_OF_RANGE- Added example to C26483C26462 USE_CONST_POINTER_FOR_VARIABLE- Added description and example to C26462C26461 USE_CONST_POINTER_ARGUMENTS:- Added description and example to C26461C26460 USE_CONST_REFERENCE_ARGUMENTS- Added description and example to C26460C26440 DECLARE_NOEXCEPT- Added example and link to Core Guidelines for C26440C26439 SPECIAL_NOEXCEPT- Added example and link to Core Guidelines for C26439C26436 NEED_VIRTUAL_DTOR- Added example and Core Guidelines link to C26436C26408 NO_MALLOC_FREE- Added example and Core Guidelines link to C26408C26401 DONT_DELETE_NON_OWNER- Added example and Core Guidelines link to C26401C26494 VAR_USE_BEFORE_INIT- Added example to C26494C26493 NO_CSTYLE_CAST- Added example to C26493C26492 NO_CONST_CAST- Added example to C26492C26490 NO_REINTERPRET_CAST- Added example to C26490C26482 NO_DYNAMIC_ARRAY_INDEXING- Added example to C26482C26471 NO_REINTERPRET_CAST_FROM_VOID_PTR- Added Example to C26471C26466 NO_STATIC_DOWNCAST_POLYMORPHIC- Added Example to C26466C26465 NO_CONST_CAST_UNNECESSARY- Added example to C26465C26447 DONT_THROW_IN_NOEXCEPT- Adding example to C26447C26446 USE_GSL_AT- Added an example for C26446C26434 DONT_HIDE_METHODS- Added example for C26434C26432 DEFINE_OR_DELETE_SPECIAL_OPS- Added example for C26432C26402 DONT_HEAP_ALLOCATE_MOVABLE_RESULT- Added example for C26402C26409 NO_NEW_DELETE- Added example for C26409C26474 NO_IMPLICIT_CAST- Updated C26474 to clarify base/derived cases
- Create a Linux MSBuild C++ project in Visual Studio - Updated instructions to create a Linux project
- ConnectionManager reference - Added commands for modify, clean
- Configure a Linux CMake project in Visual Studio - Updated to reflect latest UI
- Deploy, run, and debug your Linux MSBuild project - Added
GDB Path
- Compiler Warning (level 4) C4388 - Added warning C4388, updated 16.7 warnings
- Compiler Warning (level 3) C4018 - Updated 16.7 warnings
- Compiler Warning (level 4) C4389 - Updated 16.7 warnings
- Compiler Warnings by compiler version - Updated 16.7 warnings
- Compiler warnings C4800 through C5999 - Updated 16.7 warnings
- Compiler Error C3381 - Address cpp-docs 2493; update remarks and example
- C++ conformance improvements in Visual Studio - Updated to 16.8 release notes
- Microsoft C/C++ help and community - Updated DevCom and Microsoft Docs Q&A links
- C++ in Visual Studio - Updated DevCom and Microsoft Docs Q&A links
- Microsoft C/C++ language conformance - Updated C++20 library conformance table, update language feature table for 16.7
__restrict- if-else statement (C++) - Added description for
if/elsegrammar union- Fixed code snippet
.vcxprojfiles and wildcards/headerUnit(Use header unit IFC)/module:exportHeader(Create header units)/module:reference(Use named module IFC)/translateInclude(Translate include directives into import directives)/Zc:preprocessor(Enable preprocessor conformance mode)
/permissive-(Standards conformance) - Updated to 16.8 release notes/clr(Common Language Runtime Compilation) - Added description for/clr- pgosweep - Added more pgosweep options
- Importing data using
__declspec(dllimport)- Updated example
- How to: Use existing C++ code in a Universal Windows Platform app - Reworked for clarity and updated examples
<ios>typedefs - Updated example per GitHub #2514basic_stringClass - Added_starts_with(),ends_with()ios_base ClassmapclassmultimapClass - Addedcontains()multisetClass - Addedcontains()setClass - Addedcontains()unordered_mapClass - Addedcontains()unordered_multimapClass - Addedcontains()unordered_multisetClass - Addedcontains()unordered_setClass - Addedcontains()basic_string_viewClass - addedstarts_with(),ends_with()<bit>functions - Updatednodiscardsyntax
The following people contributed to the C++, C, and Assembler docs during this period. Thank you! See Microsoft Docs contributor guide overview if you'd like to learn how to contribute.
- yecril71pl - Christopher Yeleighton (4)
- definedrisk - Ben (3)
- BeardedFish - Darian B. (1)
- codevenkat (1)
- eltociear - Ikko Ashimine (1)
- fsb4000 - Igor Zhukov (1)
- Jaiganeshkumaran - Jaiganesh Kumaran (1)
- jogo- (1)
- justanotheranonymoususer (1)
- matrohin - Dmitry Matrokhin (1)
- mhemmit (1)
- MSDN-WhiteKnight - MSDN.WhiteKnight (1)
- OdinTemple - Odin Temple (1)
- r00tdr4g0n - r00tdr4g0n (1)
- sebkraemer - Sebastian Krämer (1)
- vtjnash - Jameson Nash (1)
- Youssef1313 - Youssef Victor (1)
- zecozephyr - Jonathan Bailey (1)