Skip to content

Commit 659337a

Browse files
author
3836425+corob-msft@users.noreply.github.com
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/cpp-docs-pr into Release-17.0
2 parents 25968aa + 7b7e32d commit 659337a

42 files changed

Lines changed: 255 additions & 85 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/_breadcrumb/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: Docs
23
tocHref: /
34
topicHref: /

docs/assembler/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: Compiler intrinsics and assembly language
23
href: ../intrinsics/index.yml
34
- name: Compiler intrinsics

docs/atl-mfc-shared/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: ATL-MFC shared classes
23
href: ../atl-mfc-shared/atl-mfc-shared-classes.md
34
- name: ATL-MFC concepts

docs/atl/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: Active Template Library (ATL)
23
href: atl-com-desktop-components.md
34
- name: Active Template Library (ATL) concepts

docs/build-insights/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: "C++ Build Insights"
23
href: ../build-insights/index.yml
34
- name: "Get started with C++ Build Insights"

docs/build/reference/analyze-code-analysis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "/analyze (Code analysis)"
33
description: "The Microsoft C++ compiler /analyze option syntax and usage."
4-
ms.date: 05/21/2021
4+
ms.date: 10/19/2021
55
f1_keywords: ["VC.Project.VCCLCompilerTool.EnablePREfast", "/analyze", "VC.Project.VCCLCompilerTool.PREfastAdditionalOptions", "VC.Project.VCCLCompilerTool.PREfastAdditionalPlugins"]
66
helpviewer_keywords: ["/analyze compiler option [C++]", "-analyze compiler option [C++]", "analyze compiler option [C++]"]
77
ms.assetid: 81da536a-e030-4bd4-be18-383927597d08
@@ -73,7 +73,7 @@ Ruleset options:
7373
**`/analyze`**\[**`-`**]\
7474
Turns on code analysis. Use **`/analyze-`** to explicitly turn off analysis. **`/analyze-`** is the default behavior.
7575

76-
By default, analysis output goes to the console or the Visual Studio Output window like other error messages. Code analysis also creates a log file named *`filename.nativeanalysis.xml`*, where *`filename`* is the name of the analyzed source file.
76+
By default, analysis output goes to the console or the Visual Studio Output window like other error messages. Code analysis also creates a log file named *`filename.nativecodeanalysis.xml`*, where *`filename`* is the name of the analyzed source file.
7777

7878
**`/analyze:only`**\
7979
By default, the compiler compiles the code to generate object files before code analysis runs. The **`/analyze:only`** option makes the compiler skip the code generation pass, and does code analysis directly. Compiler errors still prevent code analysis from running. However, the compiler won't report other warnings that it might find during the code generation pass. If the program isn't free of code-generation warnings, analysis results might be unreliable. We recommend you use this option only if the code passes code-generation syntax checks without errors or warnings.

docs/build/reference/og-global-optimizations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "/Og (Global Optimizations)"
33
description: "Describes the deprecated MSVC compiler option /Og, formerly used to enable global optimizations."
4-
ms.date: 07/08/2020
4+
ms.date: 10/19/2021
55
f1_keywords: ["VC.Project.VCCLCompilerTool.GlobalOptimizations", "/og"]
66
helpviewer_keywords: ["-Og compiler option [C++]", "global optimizations compiler option [C++]", "automatic register allocation", "/Og compiler option [C++]", "loop structures, optimizing", "common subexpression elimination", "Og compiler option [C++]"]
77
ms.assetid: d10630cc-b9cf-4e97-bde3-8d7ee79e9435
@@ -34,7 +34,7 @@ The following optimizations are available under **`/Og`**:
3434

3535
- Automatic register allocation
3636

37-
This optimization allows the compiler to store frequently used variables and subexpressions in registers; the **`register`** keyword is ignored.
37+
This optimization allows the compiler to store frequently used variables and subexpressions in registers. The **`register`** keyword is ignored by default, and causes a diagnostic under **`/std:c++17`** or later.
3838

3939
- Loop optimization
4040

@@ -62,7 +62,7 @@ The following optimizations are available under **`/Og`**:
6262
> [!NOTE]
6363
> You can enable or disable global optimization on a function-by-function basis using the `optimize` pragma together with the `g` option.
6464
65-
For related information, see [`/Oi` (Generate intrinsic functions)](oi-generate-intrinsic-functions.md) and [`/Ox`(Enable most speed optimizations)](ox-full-optimization.md).
65+
For related information, see [`/Oi` (Generate intrinsic functions)](oi-generate-intrinsic-functions.md) and [`/Ox` (Enable most speed optimizations)](ox-full-optimization.md).
6666
6767
### To set this compiler option in the Visual Studio development environment
6868

docs/build/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: Projects and build systems
23
href: ../build/projects-and-build-systems-cpp.md
34
- name: Visual Studio projects - C++
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
description: "Learn more about: register Storage-Class Specifier"
3-
title: "register Storage-Class Specifier"
4-
ms.date: "11/04/2016"
2+
description: "Learn more about: register storage-class specifier"
3+
title: "register storage-class specifier"
4+
ms.date: 10/19/2021
55
helpviewer_keywords: ["register variables", "register storage class"]
66
ms.assetid: 7577bf48-88ec-4191-873c-ef4217a4034e
77
---
8-
# register Storage-Class Specifier
8+
# `register` storage-class specifier
99

1010
**Microsoft Specific**
1111

12-
The Microsoft C/C++ compiler does not honor user requests for register variables. However, for portability all other semantics associated with the **`register`** keyword are honored by the compiler. For example, you cannot apply the unary address-of operator (**&**) to a register object nor can the **`register`** keyword be used on arrays.
12+
The Microsoft C/C++ compiler doesn't honor user requests for register variables. However, for portability all other semantics associated with the **`register`** keyword are honored by the compiler. For example, you can't apply the unary address-of operator (**`&`**) to a register object nor can the **`register`** keyword be used on arrays.
1313

1414
**END Microsoft Specific**
1515

1616
## See also
1717

18-
[Storage-Class Specifiers for Internal-Level Declarations](../c-language/storage-class-specifiers-for-internal-level-declarations.md)
18+
[Storage-class specifiers for internal-level declarations](../c-language/storage-class-specifiers-for-internal-level-declarations.md)

docs/c-language/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: C language documentation
23
href: ../c-language/index.yml
34
- name: C language reference

0 commit comments

Comments
 (0)