Skip to content

Commit 4bbedd2

Browse files
Merge pull request #6014 from MicrosoftDocs/main
Auto Publish – main to live - 2025-07-18 17:30 UTC
2 parents 876381f + ec731cb commit 4bbedd2

File tree

181 files changed

+970
-751
lines changed

Some content is hidden

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

181 files changed

+970
-751
lines changed

docs/build-insights/reference/sdk/functions/relog-a.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "RelogA"
33
description: "The C++ Build Insights SDK RelogA function reference."
4-
ms.date: "02/12/2020"
4+
ms.date: 02/12/2020
55
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "RelogA", "throughput analysis", "build time analysis", "vcperf.exe"]
66
---
7-
# RelogA
7+
# `RelogA`
88

99
::: moniker range="<=msvc-140"
1010

@@ -26,17 +26,17 @@ enum RESULT_CODE RelogA(
2626
2727
### Parameters
2828
29-
*inputLogFile*\
29+
*`inputLogFile`*\
3030
The input ETW trace that you wish to read events from.
3131
32-
*outputLogFile*\
32+
*`outputLogFile`*\
3333
The file in which to write the new events.
3434
35-
*relogDescriptor*\
36-
Pointer to a [RELOG_DESCRIPTOR](../other-types/relog-descriptor-struct.md) object. Use this object to configure the relogging session.
35+
*`relogDescriptor`*\
36+
Pointer to a [`RELOG_DESCRIPTOR`](../other-types/relog-descriptor-struct.md) object. Use this object to configure the relogging session.
3737
3838
### Return Value
3939
40-
A result code from the [RESULT_CODE](../other-types/result-code-enum.md) enum.
40+
A result code from the [`RESULT_CODE`](../other-types/result-code-enum.md) enum.
4141
4242
::: moniker-end

docs/build-insights/reference/sdk/functions/relog-w.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "RelogW"
33
description: "The C++ Build Insights SDK RelogW function reference."
4-
ms.date: "02/12/2020"
4+
ms.date: 02/12/2020
55
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "RelogW", "throughput analysis", "build time analysis", "vcperf.exe"]
66
---
7-
# RelogW
7+
# `RelogW`
88

99
::: moniker range="<=msvc-140"
1010

@@ -26,17 +26,17 @@ enum RESULT_CODE RelogW(
2626
2727
### Parameters
2828
29-
*inputLogFile*\
29+
*`inputLogFile`*\
3030
The input ETW trace that you wish to read events from.
3131
32-
*outputLogFile*\
32+
*`outputLogFile`*\
3333
The file in which to write the new events.
3434
35-
*relogDescriptor*\
36-
Pointer to a [RELOG_DESCRIPTOR](../other-types/relog-descriptor-struct.md) object. Use this object to configure the relogging session.
35+
*`relogDescriptor`*\
36+
Pointer to a [`RELOG_DESCRIPTOR`](../other-types/relog-descriptor-struct.md) object. Use this object to configure the relogging session.
3737
3838
### Return Value
3939
40-
A result code from the [RESULT_CODE](../other-types/result-code-enum.md) enum.
40+
A result code from the [`RESULT_CODE`](../other-types/result-code-enum.md) enum.
4141
4242
::: moniker-end

docs/build-insights/reference/sdk/functions/relog.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "Relog"
33
description: "The C++ Build Insights SDK Relog function reference."
4-
ms.date: "02/12/2020"
4+
ms.date: 02/12/2020
55
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "Relog", "throughput analysis", "build time analysis", "vcperf.exe"]
66
---
7-
# Relog
7+
# `Relog`
88

99
::: moniker range="<=msvc-140"
1010

@@ -41,42 +41,44 @@ RESULT_CODE Relog(
4141
StaticReloggerGroup<TReloggerGroupMembers...> reloggerGroup);
4242
```
4343
44-
### Parameters
44+
### Template parameters
45+
46+
*`TAnalyzerGroupMembers`*\
47+
This template parameter pack is always deduced.
4548
46-
*TAnalyzerGroupMembers*\
47-
This parameter is always deduced.
49+
*`TReloggerGroupMembers`*\
50+
This template parameter pack is always deduced.
4851
49-
*TReloggerGroupMembers*\
50-
This parameter is always deduced.
52+
### Parameters
5153
52-
*inputLogFile*\
54+
*`inputLogFile`*\
5355
The input ETW trace that you wish to read events from.
5456
55-
*outputLogFile*\
57+
*`outputLogFile`*\
5658
The file in which to write the new events.
5759
58-
*numberOfAnalysisPasses*\
60+
*`numberOfAnalysisPasses`*\
5961
The number of analysis passes to run on the input trace. The trace gets passed through the provided analyzer group once per analysis pass.
6062
61-
*systemEventsRetentionFlags*\
62-
A bitmask that specifies which system ETW events to keep in the relogged trace. For more information, see [RELOG_RETENTION_SYSTEM_EVENT_FLAGS](../other-types/relog-retention-system-event-flags-constants.md).
63+
*`systemEventsRetentionFlags`*\
64+
A bitmask that specifies which system ETW events to keep in the relogged trace. For more information, see [`RELOG_RETENTION_SYSTEM_EVENT_FLAGS`](../other-types/relog-retention-system-event-flags-constants.md).
6365
64-
*analyzerGroup*\
65-
The analyzer group used for the analysis phase of the relogging session. Call [MakeStaticAnalyzerGroup](make-static-analyzer-group.md) to create an analyzer group. To use a dynamic analyzer group obtained from [MakeDynamicAnalyzerGroup](make-dynamic-analyzer-group.md), first encapsulate it inside a static analyzer group by passing its address to `MakeStaticAnalyzerGroup`.
66+
*`analyzerGroup`*\
67+
The analyzer group used for the analysis phase of the relogging session. Call [`MakeStaticAnalyzerGroup`](make-static-analyzer-group.md) to create an analyzer group. To use a dynamic analyzer group obtained from [`MakeDynamicAnalyzerGroup`](make-dynamic-analyzer-group.md), first encapsulate it inside a static analyzer group by passing its address to `MakeStaticAnalyzerGroup`.
6668
67-
*reloggerGroup*\
68-
The relogger group that relogs events into the trace file specified in *outputLogFile*. Call [MakeStaticReloggerGroup](make-static-relogger-group.md) to create a relogger group. To use a dynamic relogger group obtained from [MakeDynamicReloggerGroup](make-dynamic-relogger-group.md), first encapsulate it inside a static relogger group by passing its address to `MakeStaticReloggerGroup`.
69+
*`reloggerGroup`*\
70+
The relogger group that relogs events into the trace file specified in *`outputLogFile`*. Call [`MakeStaticReloggerGroup`](make-static-relogger-group.md) to create a relogger group. To use a dynamic relogger group obtained from [`MakeDynamicReloggerGroup`](make-dynamic-relogger-group.md), first encapsulate it inside a static relogger group by passing its address to `MakeStaticReloggerGroup`.
6971
7072
### Return Value
7173
72-
A result code from the [RESULT_CODE](../other-types/result-code-enum.md) enum.
74+
A result code from the [`RESULT_CODE`](../other-types/result-code-enum.md) enum.
7375
74-
### Remark
76+
### Remarks
7577
76-
The input trace is passed through the analyzer group *numberOfAnalysisPasses* times. There's no similar option for relogging passes. The trace is passed trough the relogger group only once, after all analysis passes are complete.
78+
The input trace is passed through the analyzer group *`numberOfAnalysisPasses`* times. There's no similar option for relogging passes. The trace is passed trough the relogger group only once, after all analysis passes are complete.
7779
78-
The relogging of system events like CPU samples from within a relogger class isn't supported. Use the *systemEventsRetentionFlags* parameter to decide which system events to keep in the output trace.
80+
The relogging of system events like CPU samples from within a relogger class isn't supported. Use the *`systemEventsRetentionFlags`* parameter to decide which system events to keep in the output trace.
7981
80-
The `relog` function depends on the COM API. You must call `CoInitialize` before you call `relog`. Call `CoUninitialize` once `relog` has finished. If you call `relog` without a call to `CoInitialize` first, you'll get error code 9 (`RESULT_CODE_FAILURE_START_RELOGGER`).
82+
The `relog` function depends on the COM API. You must call [`CoInitialize`](/windows/win32/api/objbase/nf-objbase-coinitialize) before you call `relog`. Call [`CoUninitialize`](/windows/win32/api/combaseapi/nf-combaseapi-couninitialize) once `relog` has finished. If you call `relog` without a call to `CoInitialize` first, you'll get error code 9 (`RESULT_CODE_FAILURE_START_RELOGGER`).
8183
8284
::: moniker-end

docs/cpp/modules-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ helpviewer_keywords: ["modules [C++]", "modules [C++], overview"]
66
---
77
# Overview of modules in C++
88

9-
C++20 introduces *modules*. A *module* is a set of source code files that are compiled independently of the source files (or more precisely, the [translation units](https://wikipedia.org/wiki/Translation_unit_(programming)) that import them).
9+
C++20 introduces *modules*. A *module* is a set of source code files that are compiled independently of the source files (or more precisely, the [translation units](https://wikipedia.org/wiki/Translation_unit_(programming))) that import them.
1010

1111
Modules eliminate or reduce many of the problems associated with the use of header files. They often reduce compilation times, sometimes significantly. Macros, preprocessor directives, and nonexported names declared in a module aren't visible outside the module. They have no effect on the compilation of the translation unit that imports the module. You can import modules in any order without concern for macro redefinitions. Declarations in the importing translation unit don't participate in overload resolution or name lookup in the imported module. After a module is compiled once, the results are stored in a binary file that describes all the exported types, functions, and templates. The compiler can process that file much faster than a header file. And, the compiler can reuse it every place where the module is imported in a project.
1212

docs/cpp/nothrow-cpp.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: nothrow (C++)"
32
title: "nothrow (C++)"
4-
ms.date: "01/03/2018"
3+
description: "Learn more about: nothrow (C++)"
4+
ms.date: 01/03/2018
55
f1_keywords: ["nothrow_cpp"]
66
helpviewer_keywords: ["__declspec keyword [C++], nothrow", "nothrow __declspec keyword"]
7-
ms.assetid: 0a475139-459c-4ec6-99e8-7ecd0d7f44a3
87
---
98
# `nothrow` (C++)
109

@@ -20,7 +19,7 @@ A **`__declspec`** extended attribute which can be used in the declaration of fu
2019

2120
We recommend that all new code use the [`noexcept`](noexcept-cpp.md) operator rather than `__declspec(nothrow)`.
2221

23-
This attribute tells the compiler that the declared function and the functions it calls never throw an exception. However, it does not enforce the directive. In other words, it never causes [`std::terminate`](../standard-library/exception-functions.md#terminate) to be invoked, unlike **`noexcept`**, or in **`std:c++17`** mode (Visual Studio 2017 version 15.5 and later), `throw()`.
22+
This attribute tells the compiler that the declared function and the functions it calls never throw an exception. However, it does not enforce the directive. In other words, it never causes [`std::terminate`](../standard-library/exception-functions.md#terminate) to be invoked, unlike **`noexcept`**, or in **`/std:c++17`** mode (Visual Studio 2017 version 15.5 and later), `throw()`.
2423

2524
With the synchronous exception handling model, now the default, the compiler can eliminate the mechanics of tracking the lifetime of certain unwindable objects in such a function, and significantly reduce the code size. Given the following preprocessor directive, the three function declarations below are equivalent in **`/std:c++14`** mode:
2625

docs/cpp/results-of-calling-example.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: Results of Calling Example"
32
title: "Results of Calling Example"
4-
ms.date: "11/19/2018"
3+
description: "Learn more about: Results of Calling Example"
4+
ms.date: 11/19/2018
55
helpviewer_keywords: ["examples [C++], results of calling", "results, thiscall call", "results, __fastcall keyword call", "results, __cdecl call", "results, __stdcall call"]
6-
ms.assetid: aa70a7cb-ba1d-4aa6-bd0a-ba783da2e642
76
---
87
# Results of Calling Example
98

@@ -20,7 +19,7 @@ The **`__cdecl`** calling convention
2019

2120
The C decorated name (**`__stdcall`**) is `_MyFunc@20`. The C++ decorated name is implementation-specific.
2221

23-
![Diagram showing the stack and registers for the S T D call and this call calling conventions.](../cpp/media/vc37i02.gif )<br/>
22+
![Diagram showing the stack and registers for the S T D call and this call calling conventions.](../cpp/media/vc37i02.gif)<br/>
2423
The __stdcall and thiscall calling conventions
2524

2625
## `__fastcall`

docs/data/oledb/creating-an-updatable-provider.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: Creating an Updatable Provider"
32
title: "Creating an Updatable Provider"
4-
ms.date: "08/16/2018"
3+
description: "Learn more about: Creating an Updatable Provider"
4+
ms.date: 08/16/2018
55
helpviewer_keywords: ["OLE DB providers, updatable", "notifications, support in providers", "OLE DB providers, creating"]
6-
ms.assetid: bdfd5c9f-1c6f-4098-822c-dd650e70ab82
76
---
87
# Creating an Updatable Provider
98

@@ -174,7 +173,7 @@ Making sure that the data store can handle changes.
174173
175174
Handling NULL values.
176175
177-
### Handling default values.
176+
### Handling default values
178177
179178
To implement your own `FlushData` method, you need to:
180179
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2121"
32
title: "Compiler Error C2121"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2121"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2121"]
66
helpviewer_keywords: ["C2121"]
7-
ms.assetid: e04f32da-3736-4df3-8a1c-d687afcecf5c
87
---
98
# Compiler Error C2121
109

11-
'#' : invalid character : possibly the result of a macro expansion
10+
> '#' : invalid character : possibly the result of a macro expansion
11+
12+
## Remarks
1213

1314
An invalid # character may have been inserted by an incorrect macro that uses the token-pasting operator (##) instead of the stringizing operator (#).
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2122"
32
title: "Compiler Error C2122"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2122"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2122"]
66
helpviewer_keywords: ["C2122"]
7-
ms.assetid: bc060002-cd38-481b-a144-65af035ce851
87
---
98
# Compiler Error C2122
109

11-
'identifier' : prototype parameter in name list illegal
10+
> 'identifier' : prototype parameter in name list illegal
11+
12+
## Remarks
1213

1314
The parameter is not a legal type. ANSI C does not support user-defined types.

docs/error-messages/compiler-errors-1/compiler-error-c2124.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2124"
32
title: "Compiler Error C2124"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2124"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2124"]
66
helpviewer_keywords: ["C2124"]
7-
ms.assetid: 93392aaa-5582-4d68-8cc5-bd9c62a0ae7e
87
---
98
# Compiler Error C2124
109

11-
divide or mod by zero
10+
> divide or mod by zero
11+
12+
## Remarks
1213

1314
A constant expression has a zero denominator. To resolve the error, do not divide by zero.
1415

15-
The following sample generates C2124:
16+
## Example
17+
18+
The following example generates C2124:
1619

1720
```cpp
1821
// C2124.cpp

0 commit comments

Comments
 (0)