Skip to content

Commit ea11459

Browse files
TaojunshenTylerMSFTColin Robertsonkylereedmsftweijiechai
authored
11/12/2021 AM Publish (MicrosoftDocs#3914)
* finish descriptions * fix more links * smoothing out * proofing * add some better linking * tune description * update descriptions * needed to update local-info-struct.md to reflect changes to descriptions for nonexistent and ambiguous * add chrono functions * rounding out duration links * Add documentation for IntelliSense linter for C++ (MicrosoftDocs#3821) * Add first draft of linter check documentation * WIP overview. Signed-off-by: Kyle Reed <[email protected]> * Update toc. First draft of the linter overview. * Add screenshots, move files, code samples are stand-alone. Signed-off-by: Kyle Reed <[email protected]> * Style and Acrolinx grammar checker pass * Add missing Options cues for checks * Update to use latest option names Co-authored-by: [email protected] <[email protected]> * connecting duration up to it's non-member pieces and doing some general updates * fix links * cleanup * Split out VS2019 content for linter (#3824) * Update working-with-project-properties.md * cleanup * cleanup * cleanup * cleanup * cleanup * cleanup * cleanup * fix function signature * fix line ending * remove duplicate * Address /profile issues per Paddy McD (#3834) * Update download URLs to point to 2022 redists * Fixed documentation that destroy dialogs * Update void-cpp for cpp-docs 3441 Reported in MicrosoftDocs/cpp-docs/issues/3441 Clarify kinds of class member where you can't use `void*`. Fix styles. Acrolinx a few things. * More clarity on void pointers to members * zoned_traits (#3831) * add zoned_traits * draft clock_cast and clock_time_conversion * first draft * draft * draft * fix heading * cleanup * add tzdb and tzdb-list * draft * draft * pull examples * draft cleanup * acrolinx * draft cleanup * draft cleanup * incorp tech review * tech review * cleanup * cleanup * acrolinx * fix casing * add example descriptions * wording * last adjustments * wording Co-authored-by: TylerMSFT <[email protected]> * Update 16.1 conformance per J Emmett * Update docs/error-messages/compiler-errors-2/compiler-error-c2666.md * draft * acrolinx, links * links * Fix typo in page title * acrolinx * fix link * Fix TOC schema before VS2022 changes * cleanup the port * add additional info * Address 3449 typo in /analyze * update see also * Address 3462 add C5033 warning * Include link update * Typo * Add TOC entry * Update how-to-marshal-callbacks-and-delegates-by-using-cpp-interop.md typo: underlaying -> underlying * Fix typo in toc for tzdb_list * fix github issue #3469 (MicrosoftDocs#3852) Co-authored-by: TylerMSFT <[email protected]> * remove constexpr, prevent machine translation of code elements, and bring closer to current doc style (MicrosoftDocs#3854) * remove constexpr * add remark * acrolinx * update casing * cleanup Co-authored-by: TylerMSFT <[email protected]> * VS2022 update for what's new content * Acrolinx update * Fix validation, links, typos * Revert a styling quirk on headers * Validation error fix * Acrolinx and validation fixes * Conformance fix updates * Add description for new warning C26826 * Add name clarification to new description * Used more specific wording to avoid confusion * Adding missing intrinsic. * Fix intrinsic signature. * Fix wrong argument type. * Add headers, requirements * VS2022 features, C17, walkthroughs (MicrosoftDocs#3863) * VS2022 features, C17, walkthroughs * fix indentation to correct list step numbering * fix indentation to correct list step numbering * replace numbers with bold headings Co-authored-by: Beth Harvey <[email protected]> * tech review feedback * cleanup * Frontrun bulk fixes for VS2022 * Fixes #3484 * Docs/corob/cpp docs 3481 d8049 (#3865) * Add D8049 error message * Acrolinx tweak * Update toc.yml fix apparent typo in TOC Co-authored-by: Jeff Borsecnik <[email protected]> * More VS2022 non-bulk fixes. (#3867) * Bulk update VS2022 content (MicrosoftDocs#3860) * Bulk fix to update msvc-160 and msvc-170 * Fix stray moniker tags * incorp review * update wording around closing the folder * typos * fix typo introduced while fixing typos... * update formatting * update steps and formatting * Update working-with-resource-files.md * Update symbols-resource-identifiers.md * Update how-to-create-a-resource-script-file.md If you right click on a class you can't add resources. You should right click on a project. * started draft of STL conformance items * Update CMake landing page (#3864) * intro, installation, configure * config notifications * IDE integration * Building CMake projects * Debugging CMake projects * Open an existing cache * Edit CMakeLists.txt files * Configure IntelliSense * Troubleshooting, repro from CLI * Switch 17/19 CLI sections * edits * Fix code block * more edits * move images from docs/media to docs/build/media * Address feedback * Fix link style * Final edits * fix spelling per Acrolinx Co-authored-by: Beth Harvey <[email protected]> * finished first cut at VS 2022 17.0 STL conformance updates * Broken link fixed * move lwg-3518 to a c++11 section * De-emphasize codeplex archive * Add gray border (MicrosoftDocs#3876) * tech review * remove LWG-* entries * Correct or remove links: validation issues * Update casting-c-cx.md * Update casting-c-cx.md * add vs 17.0 improvement summary for STL (MicrosoftDocs#3883) * add vs 17.0 improvement summary for STL * wordsmithing * acrolinx * acrolinx * typo * fix caps * typo Co-authored-by: TylerMSFT <[email protected]> * update what's new in the docs (#3881) * add what's new for Oct 2021 * acrolinx * acrolinx * tidy up * update through date * tidy up * acrolinx * typo * Apply suggestions from PR review Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Shannon Leavitt <[email protected]> * change STL name * Update install for VS2022 * Remove Preview text * fix vs version (#3889) Co-authored-by: TylerMSFT <[email protected]> * Twhitney fix (#3891) * fix vs version * remove stray line Co-authored-by: TylerMSFT <[email protected]> * Twhitney fix (MicrosoftDocs#3893) * fix vs version * remove stray line * fix version # * fix space Co-authored-by: TylerMSFT <[email protected]> * Remove the deprecation of IT instructions in the ARM ABI Upstream ARM has undeprecated the use of IT instructions. There's no formal announcement of the matter in itself, but the previous deprecations are being removed from the official docs. See https://reviews.llvm.org/D108679#2975603 for a discussion on the matter. * Update C26826. Canonicalize core guidelines link. Include version info. Make Acrolinx happier. * Update OS and Redistributable support for VS2022 (#3897) * Address issues in recent PRs (#3898) * Address issues in recent PRs * Add C26826 to TOC * Test indent * Remove block format test * Fix entity use in ATL text encoding doc * Remove more HTML entities * Remove more `&MicrosoftDocs#42;` HTML entities * Remove HTML entities for plus * Remove HTML ehtities for hyphen * Bulk fix: removing some HTML Entity codes (MicrosoftDocs#3900) * Try removing some HTML Entity codes * Matchy matchy * Add entity `&#8203;` to test * Strip non-entity changes * Fix typo * Eliminate remaining hyphen entities * Remove square bracket entities * Remove even more square bracket entities * Acrolinx * Remove backslash and square bracket entities * Remove underscore HTML entities, fix formatting (#3910) * Remove underscore HTML entities, fix formatting * Acrolinx * Update _MSC_VER table with VS2022 RTW version. * update for VS 2022 * update windows specific section with more appropriate screenshot * acrolinx suggestion Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Colin Robertson <[email protected]> Co-authored-by: Kyle Reed <[email protected]> Co-authored-by: Chai Wei Jie <[email protected]> Co-authored-by: opbld15 <[email protected]> Co-authored-by: PRMerger19 <[email protected]> Co-authored-by: Laura Brenner <[email protected]> Co-authored-by: Courtney Wales <[email protected]> Co-authored-by: Andrea Courtright <[email protected]> Co-authored-by: PRMerger15 <[email protected]> Co-authored-by: opbld16 <[email protected]> Co-authored-by: PRMerger8 <[email protected]> Co-authored-by: dxgldotorg <[email protected]> Co-authored-by: Anju Del Moral Gonzalez <[email protected]> Co-authored-by: opbld17 <[email protected]> Co-authored-by: Tyler Whitney <[email protected]> Co-authored-by: Miya Natsuhara <[email protected]> Co-authored-by: Kristine Toliver <[email protected]> Co-authored-by: PRMerger7 <[email protected]> Co-authored-by: Avraham <[email protected]> Co-authored-by: Paula Miller <[email protected]> Co-authored-by: Dmitry Kobets <[email protected]> Co-authored-by: Weston McNamara <[email protected]> Co-authored-by: Jose Rivero <[email protected]> Co-authored-by: Beth Harvey <[email protected]> Co-authored-by: PRMerger5 <[email protected]> Co-authored-by: Red Team Rover <[email protected]> Co-authored-by: Jeff Borsecnik <[email protected]> Co-authored-by: mohammad-ghasemi-2549 <[email protected]> Co-authored-by: Erika <[email protected]> Co-authored-by: Atik Mapari (Lionbridge Technologies Inc) <[email protected]> Co-authored-by: PRMerger Service account 2 <[email protected]> Co-authored-by: Jaiganesh Kumaran <[email protected]> Co-authored-by: PRMerger4 <[email protected]> Co-authored-by: Shannon Leavitt <[email protected]> Co-authored-by: PRMerger13 <[email protected]> Co-authored-by: Martin Storsjö <[email protected]> Co-authored-by: PRMerger12 <[email protected]> Co-authored-by: Daniel Jennings <[email protected]>
1 parent fc105c8 commit ea11459

21 files changed

+411
-410
lines changed

docs/build/clang-support-msbuild.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: Clang/LLVM support in Visual Studio projects"
33
title: "Clang/LLVM support in Visual Studio projects"
4-
ms.date: 02/05/2021
4+
ms.date: 11/11/2021
55
ms.description: "Configure a Visual Studio MSBuild project to use the Clang/LLVM toolchain."
66
helpviewer_keywords: ["Clang support for C++ MSBuild projects"]
77
---
@@ -19,7 +19,7 @@ You can use Visual Studio 2019 version 16.2 and later with Clang to edit, build,
1919

2020
## Install
2121

22-
For best IDE support in Visual Studio, we recommend using the latest Clang compiler tools for Windows. If you don't already have the tools, you can install them by opening the Visual Studio Installer and choosing **C++ Clang tools for Windows** under **Desktop development with C++** optional components. You may prefer to use an existing Clang installation on your machine; if so, choose the **C++ Clang-cl for v142 build tools.** optional component.
22+
For best IDE support in Visual Studio, we recommend using the latest Clang compiler tools for Windows. If you don't already have the tools, you can install them by opening the Visual Studio Installer and choosing **C++ Clang tools for Windows** under **Desktop development with C++** optional components. You may prefer to use an existing Clang installation on your machine; if so, choose **C++ Clang-cl for v142 build tools**.
2323

2424
The Microsoft C++ Standard Library requires at least Clang 8.0.0.
2525

@@ -31,11 +31,11 @@ Later versions of Visual Studio provide newer versions of the Clang toolset. The
3131

3232
To configure a Visual Studio project to use Clang, right-click on the project node in **Solution Explorer** and choose **Properties**. Typically, you should first choose **All configurations** at the top of the dialog. Then, under **General** > **Platform Toolset**, choose **LLVM (clang-cl)** and then **OK**.
3333

34-
![Screenshot of the Property Pages dialog box with Configuration Properties > General selected and the Platform Toolset and L L V M (clang c l) options highlighted.](media/clang-msbuild-prop-page.png)
34+
![Screenshot of the Property Pages dialog box with Configuration Properties > General selected and the Platform Toolset and LLVM (clang-cl) option highlighted.](media/llvm-msbuild-prop-page.png)
3535

3636
If you're using the Clang tools that are bundled with Visual Studio, no extra steps are required. For Windows projects, Visual Studio by default invokes Clang in [clang-cl](https://llvm.org/devmtg/2014-04/PDFs/Talks/clang-cl.pdf) mode. It links with the Microsoft implementation of the Standard Library. By default, **clang-cl.exe** is located in *%VCINSTALLDIR%\\Tools\\Llvm\\bin\\* and *%VCINSTALLDIR%\\Tools\\Llvm\\x64\\bin\\*.
3737

38-
If you're using a custom Clang installation, you can either modify **Project** > **Properties** > **VC++ DIrectories** > **Configuration Properties** > **Executable Directories** by adding the custom Clang installation root as the first directory there, or change the value of the `LLVMInstallDir` property. For more information, see [Set a custom LLVM location](#custom_llvm_location).
38+
If you're using a custom Clang installation, you can either modify **Project** > **Properties** > **VC++ Directories** > **Configuration Properties** > **Executable Directories** by adding the custom Clang installation root as the first directory there, or change the value of the `LLVMInstallDir` property. For more information, see [Set a custom LLVM location](#custom_llvm_location).
3939

4040
## Configure a Linux project to use Clang tools
4141

@@ -45,7 +45,7 @@ To configure a Visual Studio Linux project to use Clang:
4545

4646
1. Right-click on the project node in **Solution Explorer** and choose **Properties**.
4747
1. Typically, you should first choose **All configurations** at the top of the dialog.
48-
1. Under **General** > **Platform Toolset**, choose **WSL_Clang_1_0** if you're using Windows Subsystem for Linux (WSL). Choose **Remote_Clang_1_0** if you're using a remote machine or VM.
48+
1. Under **General** > **Platform Toolset**, choose **Clang for Windows Subsystem for Linux** if you're using Windows Subsystem for Linux (WSL). Choose **Clang for Remote Linux** if you're using a remote machine or VM.
4949
1. Press **OK**.
5050

5151
![Screenshot of the Console App clang Visual Studio 2019 Property Pages dialog box with Configuration Properties > General selected and the Platform Toolset and L L V M (clang c l) options highlighted.](media/clang-msbuild-prop-page.png)
6.38 KB
Loading
27.6 KB
Loading

docs/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ Right now, this DLL doesn't do very much. Next, you'll create a header file to d
186186
187187
This header file declares some functions to produce a generalized Fibonacci sequence, given two initial values. A call to `fibonacci_init(1, 1)` generates the familiar Fibonacci number sequence.
188188
189-
Notice the preprocessor statements at the top of the file. The new project template for a DLL project adds **_PROJECTNAME_&#95;EXPORTS** to the defined preprocessor macros. In this example, Visual Studio defines **MATHLIBRARY&#95;EXPORTS** when your MathLibrary DLL project is built.
189+
Notice the preprocessor statements at the top of the file. The new project template for a DLL project adds `<PROJECTNAME>_EXPORTS` to the defined preprocessor macros. In this example, Visual Studio defines `MATHLIBRARY_EXPORTS` when your MathLibrary DLL project is built.
190190
191-
When the **MATHLIBRARY&#95;EXPORTS** macro is defined, the **MATHLIBRARY&#95;API** macro sets the `__declspec(dllexport)` modifier on the function declarations. This modifier tells the compiler and linker to export a function or variable from the DLL for use by other applications. When **MATHLIBRARY&#95;EXPORTS** is undefined, for example, when the header file is included by a client application, **MATHLIBRARY&#95;API** applies the `__declspec(dllimport)` modifier to the declarations. This modifier optimizes the import of the function or variable in an application. For more information, see [dllexport, dllimport](../cpp/dllexport-dllimport.md).
191+
When the `MATHLIBRARY_EXPORTS` macro is defined, the `MATHLIBRARY_API` macro sets the `__declspec(dllexport)` modifier on the function declarations. This modifier tells the compiler and linker to export a function or variable from the DLL for use by other applications. When `MATHLIBRARY_EXPORTS` is undefined, for example, when the header file is included by a client application, `MATHLIBRARY_API` applies the `__declspec(dllimport)` modifier to the declarations. This modifier optimizes the import of the function or variable in an application. For more information, see [dllexport, dllimport](../cpp/dllexport-dllimport.md).
192192
193193
### To add an implementation to the DLL
194194

docs/c-language/character-sets1.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ The source character set and execution character set include the ASCII character
1414

1515
|Escape Sequence|Character|ASCII Value|
1616
|---------------------|---------------|-----------------|
17-
|&#92;a|Alert/bell|7|
18-
|&#92;b|Backspace|8|
19-
|&#92;f|Form feed|12|
20-
|&#92;n|Newline|10|
21-
|&#92;r|Carriage return|13|
22-
|&#92;t|Horizontal tab|9|
23-
|&#92;v|Vertical tab|11|
24-
|&#92;"|Double quotation|34|
25-
|&#92;'|Single quotation|39|
26-
|&#92;&#92;|Backslash|92|
17+
|`\a`|Alert/bell|7|
18+
|`\b`|Backspace|8|
19+
|`\f`|Form feed|12|
20+
|`\n`|Newline|10|
21+
|`\r`|Carriage return|13|
22+
|`\t`|Horizontal tab|9|
23+
|`\v`|Vertical tab|11|
24+
|`\"`|Double quotation|34|
25+
|`\'`|Single quotation|39|
26+
|`\\`|Backslash|92|
2727

2828
## See also
2929

0 commit comments

Comments
 (0)