Skip to content

Commit 0de2b35

Browse files
Taojunshen3836425+corob-msft@users.noreply.github.comiamahumanSteve Wishnouskynbdd0121
authored
5/25/2022 AM Publish (MicrosoftDocs#4309)
* Fix issues in valarray content * Acrolinx pass * Fix description of Epilogue Count in ARM .xdata * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Clarify that `__vectorcall` is still decorated in x64 * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * Linker option updates 1 of N * Acrolinx pass * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Fix another typo * Consistency check * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * Test fix of issues found with pipe entities * Tweak an OR flag * I thought I'd fix one thing in valarray. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * Clean up ccs description, fix formatting * Address comment * Update formatting * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4290) * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * 5/16/2022 AM Publish (#4289) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * 5/17/2022 AM Publish (#4291) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: branh <brhagger@microsoft.com> Co-authored-by: sariaki <69108436+sariaki@users.noreply.github.com> Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Jeff Borsecnik <36546697+jborsecnik@users.noreply.github.com> * Add note about supported windows versions to <chrono> * Fix cpp-docs 3815 3898 3901 3902 * fix date * More pipey goodness. * possible 3910 fix, tweaks * Updates to address cpp-docs 3909 and 3910 * Updates per review * Update links * Fix pipe entities in standard-library articles * Fix typo * Fix review issues * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4298) * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * 5/16/2022 AM Publish (#4289) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * 5/17/2022 AM Publish (#4291) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Add note about supported windows versions to <chrono> * 5/18/2022 AM Publish (#4293) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * Linker option updates 1 of N * Acrolinx pass * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Fix another typo * Consistency check * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. * Update formatting * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4290) * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * 5/16/2022 AM Publish (#4289) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * 5/17/2022 AM Publish (#4291) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: branh <brhagger@microsoft.com> Co-authored-by: sariaki <69108436+sariaki@users.noreply.github.com> Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Jeff Borsecnik <36546697+jborsecnik@users.noreply.github.com> * Fix cpp-docs 3815 3898 3901 3902 * fix date Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Feng Xu <fenxu@microsoft.com> Co-authored-by: branh <brhagger@microsoft.com> Co-authored-by: sariaki <69108436+sariaki@users.noreply.github.com> Co-authored-by: Jeff Borsecnik <36546697+jborsecnik@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 5/19/2022 AM Publish (#4294) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * Linker option updates 1 of N * Acrolinx pass * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Fix another typo * Consistency check * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. * Update formatting * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4290) * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * 5/16/2022 AM Publish (#4289) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * 5/17/2022 AM Publish (#4291) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: branh <brhagger@microsoft.com> Co-authored-by: sariaki <69108436+sariaki@users.noreply.github.com> Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Jeff Borsecnik <36546697+jborsecnik@users.noreply.github.com> * Fix cpp-docs 3815 3898 3901 3902 * fix date Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Feng Xu <fenxu@microsoft.com> Co-authored-by: branh <brhagger@microsoft.com> Co-authored-by: sariaki <69108436+sariaki@users.noreply.github.com> Co-authored-by: Jeff Borsecnik <36546697+jborsecnik@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 5/20/2022 AM Publish (#4297) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * Linker option updates 1 of N * Acrolinx pass * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Fix another typo * Consistency check * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review * I thought I'd fix one thing in valarray. * Update formatting * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4290) * Clarify master and single directives. A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives. Have to use 'master' instead of 'main' here because that it is an OpenMP keyword. * Fixed __vmx_on parameter being incorrect according to the intel manual Vol. 3C 30-27, "The operand of this instruction is a 4KB-aligned physical address (the VMXON pointer) that references the VMXON region, which the logical processor may use to support VMX operation. This operand is always 64 bits and is always in memory.". this was already correctly explained in the "Parameters" section, but also wrongly named. * 5/16/2022 AM Publish (#4289) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-related to github #3847 (#4272) * simplify code example-related to github #3847 * right justify output * Update docs/c-runtime-library/reference/getdiskfree.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * address feedback * Recreate Lauren's /TIME update * fix for github 3787 * Fix formatting. * acrolinx pass * more acrolinx * Added example program outputs + fixed `equal_range` example compile errors (#3892) * Added a space to maintain style consistency (#3892) * Added new line to output section of max (#3892) * Adding another new line to output section of max (#3892) * tech feedback * Tweak issue templates * Add two new templates for new doc work Templates for doc work for new standards conformance in the compiler and tools. * Fix merge issues * Fix typo * Updated per comments * Clean up more html escaped pipe chars * Remove more pipe html entities * Bulk fix continued of pipe html entities * Bulk fix of pipe html entities 5 of N * Bulk fix pipe html entities 6 of N * Slight Acrolinx pass * Remove some &#124; ('|') HTML entities in docs (#4038) * Remove some &#124; ('|') HTML entities in docs * Another group of files * Fixes after testing * Tweaks per review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: Steve Wishnousky <stwish@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Pritam Ovhal <31490724+pritamso@users.noreply.github.com> Co-authored-by: Lauren Prinn <laurenprinn98@gmail.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Matin Sasanpour <matin.sasan@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: Carolyn McSharry <v-cmcsharry@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Brandon <pacewicbrandon@gmail.com> Co-authored-by: PRMerger3 <prmergr3@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger5 <prmergr5@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> * Update date, formatting * Use 'main' instead of 'master' where possible. * Use 'main' instead of 'master' in all documentation where possible. * 5/17/2022 AM Publish (#4291) * Fix issues in valarray content * Acrolinx pass * Update scanf %c to mention field width As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it. * Broken link fixed * Broken link fixed * Update dynamicbase.md arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures. * update code examples * offer an alternative project type * fix for github #3859 * acrolinx * Clarify per Russ' comments Also update date and add formatting to current standard. * Work in progress for 17.2 release * Followup cpp-docs 3871 in linker opts * Fix grammar and formatting issues * Update latest-supported-vc-redist.md In the line 35, at the very end removed an extra dot. * Fix alarming bidi description * text tweaks * bug fix: 1536384 note implicit compiler flag that is set when using header units. Also, update how null is specified. * fix flag casing * Address cpp-docs 3857 3865 3877 3882 * simplify code example-…
1 parent e5c5969 commit 0de2b35

12 files changed

Lines changed: 81 additions & 55 deletions

‎docs/build/arm-exception-handling.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ When the packed unwind format is insufficient to describe the unwinding of a fun
166166
|0|20|*X* is a 1-bit field that indicates the presence (1) or absence (0) of exception data.|
167167
|0|21|*`E`* is a 1-bit field that indicates that information that describes a single epilogue is packed into the header (1) rather than requiring additional scope words later (0).|
168168
|0|22|*F* is a 1-bit field that indicates that this record describes a function fragment (1) or a full function (0). A fragment implies that there's no prologue and that all prologue processing should be ignored.|
169-
|0|23-27|*Epilogue Count* is a 5-bit field that has two meanings, depending on the state of the *`E`* bit:<br /><br /> - If *`E`* is 0, this field is a count of the total number of exception scopes described in section 3. If more than 31 scopes exist in the function, then this field and the *Code Words* field must both be set to 0 to indicate that an extension word is required.<br />- If *`E`* is 1, this field specifies the index of the first unwind code that describes the only epilogue.|
169+
|0|23-27|*Epilogue Count* is a 5-bit field that has two meanings, depending on the state of the *`E`* bit:<br /><br /> - If *`E`* is 0, this field is a count of the total number of epilogue scopes described in section 2. If more than 31 scopes exist in the function, then this field and the *Code Words* field must both be set to 0 to indicate that an extension word is required.<br />- If *`E`* is 1, this field specifies the index of the first unwind code that describes the only epilogue.|
170170
|0|28-31|*Code Words* is a 4-bit field that specifies the number of 32-bit words required to contain all of the unwind codes in section 4. If more than 15 words are required for more than 63 unwind code bytes, this field and the *Epilogue Count* field must both be set to 0 to indicate that an extension word is required.|
171171
|1|0-15|*Extended Epilogue Count* is a 16-bit field that provides more space for encoding an unusually large number of epilogues. The extension word that contains this field is only present if the *Epilogue Count* and *Code Words* fields in the first header word are both set to 0.|
172172
|1|16-23|*Extended Code Words* is an 8-bit field that provides more space for encoding an unusually large number of unwind code words. The extension word that contains this field is only present if the *Epilogue Count* and *Code Words* fields in the first header word are both set to 0.|

‎docs/build/cmake-projects-in-visual-studio.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ When you **open a folder** containing a *`CMakeLists.txt`* file, the following t
3939
- In the background, Visual Studio starts to index the source files to enable IntelliSense, browsing information, refactoring, and so on. As you work, Visual Studio monitors changes in the editor and also on disk to keep its index in sync with the sources.
4040

4141
> [!NOTE]
42-
> Starting in Visual Studio 2022 version 17.1 Preview 2, if your folder doesn't contain a root `CMakeLists.txt` you'll be prompted whether you'd like to enable CMake integration or not. For more information, see [CMake partial activation](#cmake-partial-activation).
42+
> Starting in Visual Studio 2022 version 17.1 Preview 2, if your top-level `CMakeLists.txt` exists in a subfolder and not at the root of the workspace, you'll be prompted whether you'd like to enable CMake integration or not. For more information, see [CMake partial activation](#cmake-partial-activation).
4343
4444
Once CMake cache generation has succeeded, you can also view your projects organized logically by targets. Choose the **Select View** button on the **Solution Explorer** toolbar. From the list in **Solution Explorer - Views**, select **CMake Targets View** and press **Enter** to open the targets view:
4545

‎docs/build/exporting-c-functions-for-use-in-c-or-cpp-language-executables.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
description: "Learn more about: Exporting C Functions for Use in C or C++ Language Executables"
3-
title: "Exporting C Functions for Use in C or C++ Language Executables"
4-
ms.date: "11/04/2016"
2+
description: "Learn more about: Exporting C functions for use in C or C++ language executables"
3+
title: "Export C functions for use in C or C++ language executables"
4+
ms.date: 05/24/2022
55
helpviewer_keywords: ["functions [C], exporting", "functions [C], C or C++ executables and", "__cplusplus macro", "exporting DLLs [C++], C functions in C++ executables", "exporting functions [C++], C functions in C++ executables"]
66
ms.assetid: b51d6e5e-37cf-4c1c-b0bf-fcf188c82f00
77
---
8-
# Exporting C Functions for Use in C or C++ Language Executables
8+
# Export C functions for use in C or C++ language executables
99

10-
If you have functions in a DLL written in C that you want to access from a C language or C++ language module, you should use the **__cplusplus** preprocessor macro to determine which language is being compiled, and then declare these functions with C linkage if being used from a C++ language module. If you use this technique and provide header files for your DLL, these functions can be used by C and C++ users with no change.
10+
If you have functions in a DLL written in C, you can use a preprocessor macro to make them easy to access from both C language and C++ language code. The **`__cplusplus`** preprocessor macro indicates which language is being compiled. You may use it to declare the functions with C linkage when called from C++ language code. If you use this technique and provide header files for your DLL, these functions can be used by C and C++ users with no change.
1111

12-
The following code shows a header file that can be used by C and C++ client applications:
12+
The following code shows a header file that both C and C++ client applications can use:
1313

1414
```h
1515
// MyCFuncs.h
@@ -26,7 +26,7 @@ __declspec( dllimport ) void AnotherCFunc();
2626
#endif
2727
```
2828
29-
If you need to link C functions to your C++ executable and the function declaration header files have not used the above technique, in the C++ source file, do the following to prevent the compiler from decorating the C function names:
29+
Sometimes you may need to link C functions to your C++ executable, but the function declaration header files haven't used the above technique. You can still call the functions from C++. In the C++ source file, wrap the `#include` directive to prevent the compiler from decorating the C function names:
3030
3131
```cpp
3232
extern "C" {
@@ -36,23 +36,23 @@ extern "C" {
3636

3737
## What do you want to do?
3838

39-
- [Export from a DLL using .def files](exporting-from-a-dll-using-def-files.md)
39+
- [Export from a DLL using `.def` files](exporting-from-a-dll-using-def-files.md)
4040

41-
- [Export from a DLL using __declspec(dllexport)](exporting-from-a-dll-using-declspec-dllexport.md)
41+
- [Export from a DLL using `__declspec(dllexport)`](exporting-from-a-dll-using-declspec-dllexport.md)
4242

43-
- [Export and import using AFX_EXT_CLASS](exporting-and-importing-using-afx-ext-class.md)
43+
- [Export and import using `AFX_EXT_CLASS`](exporting-and-importing-using-afx-ext-class.md)
4444

4545
- [Determine which exporting method to use](determining-which-exporting-method-to-use.md)
4646

47-
- [Import into an application using __declspec(dllimport)](importing-into-an-application-using-declspec-dllimport.md)
47+
- [Import into an application using `__declspec(dllimport)`](importing-into-an-application-using-declspec-dllimport.md)
4848

4949
- [Initialize a DLL](run-time-library-behavior.md#initializing-a-dll)
5050

5151
## What do you want to know more about?
5252

5353
- [Decorated names](reference/decorated-names.md)
5454

55-
- [Using extern to Specify Linkage](../cpp/extern-cpp.md)
55+
- [Using `extern` to specify linkage](../cpp/extern-cpp.md)
5656

5757
## See also
5858

‎docs/build/reference/decorated-names.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The function and class names are encoded in the decorated name. The rest of the
4747

4848
## <a name="FormatC"></a> Format of a C decorated name
4949

50-
The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. This is also the decoration format that is used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. Note that in a 64-bit environment, functions are not decorated.
50+
The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. It's also the decoration format that's used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. In a 64-bit environment, C or `extern "C"` functions are only decorated when using the `__vectorcall` calling convention.
5151

5252
|Calling convention|Decoration|
5353
|------------------------|----------------|

‎docs/build/reference/showincludes-list-include-files.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: /showIncludes (List include files)"
33
title: "/showIncludes (List include files)"
4-
ms.date: 04/15/2021
4+
ms.date: 05/24/2022
55
f1_keywords: ["VC.Project.VCCLWCECompilerTool.ShowIncludes", "VC.Project.VCCLCompilerTool.ShowIncludes", "/showincludes"]
66
helpviewer_keywords: ["include files", "/showIncludes compiler option [C++]", "include files, displaying in compilation", "-showIncludes compiler option [C++]", "showIncludes compiler option [C++]"]
77
---
@@ -30,8 +30,6 @@ Note: including file: d:\temp\2.h
3030

3131
In this case, *`2.h`* was included from within *`1.h`*, causing the indentation.
3232

33-
The **`/showIncludes`** option emits to `stderr`, not `stdout`.
34-
3533
### To set this compiler option in the Visual Studio development environment
3634

3735
1. Open the project's **Property Pages** dialog box. For details, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).

‎docs/code-quality/c26495.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
22
title: C26495
3-
ms.date: 03/22/2018
3+
ms.date: 05/23/2022
44
ms.topic: reference
55
f1_keywords: ["C26495"]
66
helpviewer_keywords: ["C26495"]
77
description: CppCoreCheck rule that enforces C++ Core Guidelines Type.6
88
---
99
# C26495 MEMBER_UNINIT
1010

11-
Variable '%variable%' is uninitialized. Always initialize a member variable (type.6).
11+
> Variable '*identifier*' is uninitialized. Always initialize a member variable (type.6).
1212
13-
## See also
13+
## Remarks
1414

15-
C++ Core Guidelines [Type.6](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#SS-type) and [C.48](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers)
15+
A member variable isn't initialized by a constructor or by an initializer. Make sure all variables are initialized by the end of construction. For more information, see C++ Core Guidelines [Type.6](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#SS-type) and [C.48](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers).
1616

1717
## Example
1818

1919
```cpp
2020
struct MyStruct
2121
{
2222
int value;
23-
MyStruct() {}; // C26495, MyStruct::value is uninitialized
23+
MyStruct() {} // C26495, MyStruct::value is uninitialized
2424
};
2525
```
2626

27-
To fix the warning, add in-class initializers to all of the member variables. See the above linked C++ Core Guidelines pages for additional information.
27+
To fix the warning, add in-class initialization to all of the member variables:
2828

2929
```cpp
3030
struct MyStruct
3131
{
3232
int value{};
33-
MyStruct() {}; // no warning, MyStruct::value is set via default member initialization
33+
MyStruct() {} // no warning, MyStruct::value is set via default member initialization
3434
};
3535
```

‎docs/cpp/dllexport-dllimport.md‎

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
---
22
description: "Learn more about: dllexport, dllimport"
33
title: "dllexport, dllimport"
4-
ms.date: "11/04/2016"
4+
ms.date: 05/24/2022
55
f1_keywords: ["dllimport_cpp", "dllexport_cpp"]
66
helpviewer_keywords: ["dllexport __declspec keyword", "__declspec keyword [C++], dllexport", "dllimport __declspec keyword", "__declspec keyword [C++], dllimport"]
77
ms.assetid: ff95b645-ef55-4e72-b848-df44657b3208
88
---
9-
# dllexport, dllimport
9+
# `dllexport`, `dllimport`
1010

1111
**Microsoft Specific**
1212

1313
The **`dllexport`** and **`dllimport`** storage-class attributes are Microsoft-specific extensions to the C and C++ languages. You can use them to export and import functions, data, and objects to or from a DLL.
1414

1515
## Syntax
1616

17-
```
18-
__declspec( dllimport ) declarator
19-
__declspec( dllexport ) declarator
20-
```
17+
> **`__declspec( dllimport )`** *`declarator`*\
18+
> **`__declspec( dllexport )`** *`declarator`*
2119
2220
## Remarks
2321

24-
These attributes explicitly define the DLL's interface to its client, which can be the executable file or another DLL. Declaring functions as **`dllexport`** eliminates the need for a module-definition (.def) file, at least with respect to the specification of exported functions. The **`dllexport`** attribute replaces the **__export** keyword.
22+
These attributes explicitly define the DLL's interface to its client, which can be the executable file or another DLL. Declaring functions as **`dllexport`** eliminates the need for a module-definition (`.def`) file, at least with respect to the specification of exported functions. The **`dllexport`** attribute replaces the **`__export`** keyword.
2523

26-
If a class is marked declspec(dllexport), any specializations of class templates in the class hierarchy are implicitly marked as declspec(dllexport). This means that class templates are explicitly instantiated and the class's members must be defined.
24+
If a class is marked `__declspec(dllexport)`, any specializations of class templates in the class hierarchy are implicitly marked as `__declspec(dllexport)`. It means that class templates are explicitly instantiated and the class's members must be defined.
2725

28-
**`dllexport`** of a function exposes the function with its decorated name. For C++ functions, this includes name mangling. For C functions or functions that are declared as `extern "C"`, this includes platform-specific decoration that's based on the calling convention. For information on name decoration in C/C++ code, see [Decorated Names](../build/reference/decorated-names.md). No name decoration is applied to exported C functions or C++ `extern "C"` functions using the **`__cdecl`** calling convention.
26+
**`dllexport`** of a function exposes the function with its decorated name, sometimes known as "name mangling". For C++ functions, the decorated name includes extra characters that encode type and parameter information. C functions or functions that are declared as `extern "C"` include platform-specific decoration that's based on the calling convention. No name decoration is applied to exported C functions or C++ `extern "C"` functions that use the **`__cdecl`** calling convention. For more information on name decoration in C/C++ code, see [Decorated names](../build/reference/decorated-names.md).
2927

30-
To export an undecorated name, you can link by using a Module Definition (.def) file that defines the undecorated name in an EXPORTS section. For more information, see [EXPORTS](../build/reference/exports.md). Another way to export an undecorated name is to use a `#pragma comment(linker, "/export:alias=decorated_name")` directive in the source code.
28+
To export an undecorated name, you can link by using a Module Definition (`.def`) file that defines the undecorated name in an `EXPORTS` section. For more information, see [`EXPORTS`](../build/reference/exports.md). Another way to export an undecorated name is to use a `#pragma comment(linker, "/export:alias=decorated_name")` directive in the source code.
3129

3230
When you declare **`dllexport`** or **`dllimport`**, you must use [extended attribute syntax](../cpp/declspec.md) and the **`__declspec`** keyword.
3331

@@ -53,17 +51,17 @@ DllExport int n;
5351

5452
For more information, see:
5553

56-
- [Definitions and Declarations](../cpp/definitions-and-declarations-cpp.md)
54+
- [Definitions and declarations](../cpp/definitions-and-declarations-cpp.md)
5755

58-
- [Defining Inline C++ Functions with dllexport and dllimport](../cpp/defining-inline-cpp-functions-with-dllexport-and-dllimport.md)
56+
- [Defining inline C++ functions with `dllexport` and `dllimport`](../cpp/defining-inline-cpp-functions-with-dllexport-and-dllimport.md)
5957

60-
- [General Rules and Limitations](../cpp/general-rules-and-limitations.md)
58+
- [General rules and limitations](../cpp/general-rules-and-limitations.md)
6159

62-
- [Using dllimport and dllexport in C++ Classes](../cpp/using-dllimport-and-dllexport-in-cpp-classes.md)
60+
- [Using `dllimport` and `dllexport` in C++ classes](../cpp/using-dllimport-and-dllexport-in-cpp-classes.md)
6361

6462
**END Microsoft Specific**
6563

6664
## See also
6765

68-
[__declspec](../cpp/declspec.md)<br/>
66+
[`__declspec`](../cpp/declspec.md)\
6967
[Keywords](../cpp/keywords-cpp.md)

‎docs/cpp/welcome-back-to-cpp-modern-cpp.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Macros in C and C++ are tokens that are processed by the preprocessor before com
142142
constexpr int size = 10; // modern C++
143143
```
144144
145-
### Uniform initialization
145+
## Uniform initialization
146146
147147
In modern C++, you can use brace initialization for any type. This form of initialization is especially convenient when initializing arrays, vectors, or other containers. In the following example, `v2` is initialized with three instances of `S`. `v3` is initialized with three instances of `S` that are themselves initialized using braces. The compiler infers the type of each element based on the declared type of `v3`.
148148
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
description: "Learn more about: Compiler Warning (level 1) C4273"
33
title: "Compiler Warning (level 1) C4273"
4-
ms.date: "11/04/2016"
4+
ms.date: 05/23/2022
55
f1_keywords: ["C4273"]
66
helpviewer_keywords: ["C4273"]
77
ms.assetid: cc18611d-9454-40a4-ad73-69823d5888fb
88
---
99
# Compiler Warning (level 1) C4273
1010

11-
'function' : inconsistent DLL linkage
11+
> '*function*' : inconsistent DLL linkage
1212
13-
Two definitions in a file differ in their use of [dllimport](../../cpp/dllexport-dllimport.md).
13+
Two definitions in a file differ in their use of [`dllimport`](../../cpp/dllexport-dllimport.md).
1414

1515
## Examples
1616

17-
The following sample generates C4273.
17+
The following sample generates C4273, and shows how to fix it.
1818

1919
```cpp
2020
// C4273.cpp
@@ -23,11 +23,16 @@ char __declspec(dllimport) c;
2323
char c; // C4273, delete this line or the line above to resolve
2424
```
2525
26-
The following sample generates C4273.
26+
The following sample generates C4273. To fix it, delete the redeclaration of `printf_s`.
2727
2828
```cpp
2929
// C4273_b.cpp
3030
// compile with: /W1 /clr /c
3131
#include <stdio.h>
3232
extern "C" int printf_s(const char *, ...); // C4273
3333
```
34+
35+
## See also
36+
37+
[`dllexport`, `dllimport`](../../cpp/dllexport-dllimport.md)\
38+
[Export C functions for use in C or C++ language executables](../../build/exporting-c-functions-for-use-in-c-or-cpp-language-executables.md)

0 commit comments

Comments
 (0)