Skip to content

Commit 72161bc

Browse files
authored
Merge pull request #3156 from MicrosoftDocs/master
9/17/2020 AM Publish
2 parents c1fd917 + f2413ef commit 72161bc

File tree

84 files changed

+137
-389
lines changed

Some content is hidden

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

84 files changed

+137
-389
lines changed

docs/atl/reference/debugging-and-error-reporting-global-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ For ATL projects, it is possible to provide your own implementation of this func
185185

186186
[!code-cpp[NVC_ATL_Windowing#95](../../atl/codesnippet/cpp/debugging-and-error-reporting-global-functions_2.h)]
187187

188-
## Requirements
188+
### Requirements
189189

190190
**Header:** atldef.h
191191

@@ -207,7 +207,7 @@ If _ATL_NO_EXCEPTIONS is not defined in an ATL project, the function throws a [C
207207

208208
If _ATL_NO_EXCEPTIONS is defined, the function causes an assertion failure instead of throwing an exception.
209209

210-
## Requirements
210+
### Requirements
211211

212212
**Header:** atldef.h
213213

docs/build-insights/reference/sdk/other-types/tracing-session-options-struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "TRACING_SESSION_OPTIONS structure"
3-
description: "The C++ Build Insights SDK TRACING_SESSION_OPTIONS structure reference."
3+
description: "Learn about the C++ Build Insights SDK TRACING_SESSION_OPTIONS structure reference."
44
ms.date: "02/12/2020"
55
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "TRACING_SESSION_OPTIONS", "throughput analysis", "build time analysis", "vcperf.exe"]
66
---

docs/build-insights/reference/sdk/other-types/tracing-session-statistics-struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "TRACING_SESSION_STATISTICS structure"
3-
description: "The C++ Build Insights SDK TRACING_SESSION_OPTIONS structure reference."
3+
description: "Learn about the C++ Build Insights SDK TRACING_SESSION_STATISTICS structure reference."
44
ms.date: "02/12/2020"
55
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "TRACING_SESSION_STATISTICS", "throughput analysis", "build time analysis", "vcperf.exe"]
66
---

docs/build/reference/errorreport-report-internal-linker-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "/ERRORREPORT (Report internal linker errors)"
3-
description: "Reference guide to the Microsoft NMAKE command-line options."
3+
description: "Learn how to use /ERRORREPORT."
44
ms.date: "02/09/2020"
55
f1_keywords: ["/ERRORREPORT", "VC.Project.VCLinkerTool.ErrorReporting"]
66
helpviewer_keywords: ["/ERRORREPORT linker option", "ERRORREPORT linker option", "-ERRORREPORT linker option"]

docs/build/reference/running-nmake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Running NMAKE"
3-
description: "Reference guide to the Microsoft NMAKE command-line options."
3+
description: "Learn about running NMAKE."
44
ms.date: "02/09/2020"
55
helpviewer_keywords: ["targets, building", "response files, NMAKE", "targets", "command files", "NMAKE program, targets", "NMAKE program, running", "command files, NMAKE"]
66
ms.assetid: 0421104d-8b7b-4bf3-86c1-928d9b7c1a8c

docs/c-runtime-library/reference/fopen-wfopen.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ The following options can be appended to *mode* to specify additional behaviors.
121121

122122
|*mode* modifier|Behavior|
123123
|-|-|
124+
| **x** | Forces the function to fail if *filename* already exists. Can only be used with the "w" or "w+" specifiers. |
124125
| **c** | Enable the commit flag for the associated *filename* so that the contents of the file buffer are written directly to disk if either **fflush** or **_flushall** is called. |
125126
| **n** | Reset the commit flag for the associated *filename* to "no-commit." This is the default. It also overrides the global commit flag if you link your program with COMMODE.OBJ. The global commit flag default is "no-commit" unless you explicitly link your program with COMMODE.OBJ (see [Link Options](../../c-runtime-library/link-options.md)). |
126127
| **N** | Specifies that the file is not inherited by child processes. |
@@ -142,6 +143,7 @@ Valid characters for the *mode* string that is used in **fopen** and **_fdopen**
142143
|**w+**|**\_O\_RDWR** (usually **\_O\_RDWR** | **\_O\_CREAT** | **\_O\_TRUNC**)|
143144
|**b**|**\_O\_BINARY**|
144145
|**t**|**\_O\_TEXT**|
146+
|**x**|**\_O\_EXCL**|
145147
|**c**|None|
146148
|**n**|None|
147149
|**S**|**\_O\_SEQUENTIAL**|

docs/code-quality/c26439.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: "conceptual"
55
f1_keywords: ["C26439"]
66
helpviewer_keywords: ["C26439"]
77
ms.assetid: 9df2a1b0-ea94-4884-9d28-c1522ec33a1b
8-
description: CppCoreCheck rule that enforces C++ Core Guidelines F.6
8+
description: CppCoreCheck rule C26439 that enforces C++ Core Guidelines F.6
99
---
1010
# C26439 SPECIAL_NOEXCEPT
1111

docs/code-quality/c26440.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: "conceptual"
55
f1_keywords: ["C26440"]
66
helpviewer_keywords: ["C26440"]
77
ms.assetid: b6d2b188-35cc-4de2-878c-6f97d5a2444a
8-
description: CppCoreCheck rule that enforces C++ Core Guidelines F.6
8+
description: CppCoreCheck rule C26440 that enforces C++ Core Guidelines F.6
99
---
1010
# C26440 DECLARE_NOEXCEPT
1111

docs/code-quality/c26462.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26462"]
66
helpviewer_keywords: ["C26462"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Con.4
7+
description: CppCoreCheck rule C26462 that enforces C++ Core Guidelines Con.4
88
---
99
# C26462 USE_CONST_POINTER_FOR_VARIABLE
1010

docs/code-quality/c26463.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26463"]
66
helpviewer_keywords: ["C26463"]
7-
description: CppCoreCheck placeholder warning for future con.4 enforcement
7+
description: CppCoreCheck placeholder warning C26463 for future con.4 enforcement
88
---
99
# C26463 USE_CONST_FOR_ELEMENTS
1010

docs/code-quality/c26464.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26464"]
66
helpviewer_keywords: ["C26464"]
7-
description: CppCoreCheck placeholder warning for future con.4 enforcement
7+
description: CppCoreCheck placeholder warning C26464 for future con.4 enforcement
88
---
99
# C26464 USE_CONST_POINTER_FOR_ELEMENTS
1010

docs/code-quality/c26465.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26465"]
66
helpviewer_keywords: ["C26465"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Type.3
7+
description: CppCoreCheck rule C26465 that enforces C++ Core Guidelines Type.3
88
---
99
# C26465 NO_CONST_CAST_UNNECESSARY
1010

docs/code-quality/c26471.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26471"]
66
helpviewer_keywords: ["C26471"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Type.1
7+
description: CppCoreCheck rule C26471 that enforces C++ Core Guidelines Type.1
88
---
99
# C26471 NO_REINTERPRET_CAST_FROM_VOID_PTR
1010

docs/code-quality/c26482.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26482"]
66
helpviewer_keywords: ["C26482"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Bounds.2
7+
description: CppCoreCheck rule C26482 that enforces C++ Core Guidelines Bounds.2
88
---
99
# C26482 NO_DYNAMIC_ARRAY_INDEXING
1010

docs/code-quality/c26483.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26483"]
66
helpviewer_keywords: ["C26483"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Bounds.2
7+
description: CppCoreCheck rule C26483 that enforces C++ Core Guidelines Bounds.2
88
---
99
# C26483 STATIC_INDEX_OUT_OF_RANGE
1010

docs/code-quality/c26490.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26490"]
66
helpviewer_keywords: ["C26490"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Type.1
7+
description: CppCoreCheck rule C26490 that enforces C++ Core Guidelines Type.1
88
---
99
# C26490 NO_REINTERPRET_CAST
1010

docs/code-quality/c26492.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26492"]
66
helpviewer_keywords: ["C26492"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Type.3
7+
description: CppCoreCheck rule C26492 that enforces C++ Core Guidelines Type.3
88
---
99
# C26492 NO_CONST_CAST
1010

docs/code-quality/c26496.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.date: 03/22/2018
44
ms.topic: reference
55
f1_keywords: ["C26496"]
66
helpviewer_keywords: ["C26496"]
7-
description: CppCoreCheck rule that enforces C++ Core Guidelines Con.4
7+
description: CppCoreCheck rule C26496 that enforces C++ Core Guidelines Con.4
88
---
99
# C26496 USE_CONST_FOR_VARIABLE
1010

docs/code-quality/c6297.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: C6297
3-
description: "Describes causes of MSVC Code analysis warning C26452, and how to fix the issue."
3+
description: "Describes causes of MSVC Code analysis warning C6297, and how to fix the issue."
44
ms.date: 07/15/2020
55
f1_keywords: ["C6297"]
66
helpviewer_keywords: ["C6297"]

docs/cpp/static-assert.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ The compiler examines the **`static_assert`** declaration for syntax errors when
3535

3636
You can use the **`static_assert`** keyword at namespace, class, or block scope. (The **`static_assert`** keyword is technically a declaration, even though it does not introduce new name into your program, because it can be used at namespace scope.)
3737

38-
## Description
38+
## Description of static_assert with namespace scope
3939

4040
In the following example, the **`static_assert`** declaration has namespace scope. Because the compiler knows the size of type `void *`, the expression is evaluated immediately.
4141

42-
## Example
42+
## Example of static_assert with namespace scope
4343

4444
```cpp
4545
static_assert(sizeof(void *) == 4, "64-bit code generation is not supported.");
4646
```
4747
48-
## Description
48+
## Description of static_assert with class scope
4949
5050
In the following example, the **`static_assert`** declaration has class scope. The **`static_assert`** verifies that a template parameter is a *plain old data* (POD) type. The compiler examines the **`static_assert`** declaration when it is declared, but does not evaluate the *constant-expression* parameter until the `basic_string` class template is instantiated in `main()`.
5151
52-
## Example
52+
## Example of static_assert with class scope
5353
5454
```cpp
5555
#include <type_traits>

docs/cppcx/platform-agile-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The `Agile<T>` class is a native, standard C++ class and requires `agile.h`. It
7373

7474
Initializes a new instance of the Agile class.
7575

76-
## Syntax
76+
### Syntax
7777

7878
```cpp
7979
Agile();
@@ -98,7 +98,7 @@ The first version of this constructor is the default constructor. The second ver
9898
9999
Destroys the current instance of the Agile class.
100100
101-
## Syntax
101+
### Syntax
102102
103103
```cpp
104104
~Agile();
@@ -112,7 +112,7 @@ This destructor also releases the object represented by the current Agile object
112112

113113
Returns a handle to the object that is represented by the current Agile object.
114114

115-
## Syntax
115+
### Syntax
116116

117117
```cpp
118118
T^ Get() const;
@@ -128,7 +128,7 @@ The type of the return value is actually an undisclosed internal type. A conveni
128128

129129
Reinitializes the current Agile object, and then returns the address of a handle to an object of type `T`.
130130

131-
## Syntax
131+
### Syntax
132132

133133
```cpp
134134
T^* GetAddressOf() throw();
@@ -151,7 +151,7 @@ This operation releases the current representation of a object of type `T`, if a
151151

152152
Returns the address of a handle to the object represented by the current Agile object.
153153

154-
## Syntax
154+
### Syntax
155155

156156
```cpp
157157
T^* GetAddressOfForInOut() throw();
@@ -174,7 +174,7 @@ This operation acquires the current threading context and then returns the addre
174174

175175
Discards the current Agile object's underlying object and context.
176176

177-
## Syntax
177+
### Syntax
178178

179179
```cpp
180180
void Release() throw();
@@ -188,7 +188,7 @@ The current Agile object's underlying object and context are discarded, if they
188188

189189
Retrieves a handle to the object represented by the current Agile object.
190190

191-
## Syntax
191+
### Syntax
192192

193193
```cpp
194194
T^ operator->() const throw();
@@ -204,7 +204,7 @@ This operator actually returns an undisclosed internal type. A convenient way to
204204

205205
Assigns the specified object to the current Agile object.
206206

207-
## Syntax
207+
### Syntax
208208

209209
```cpp
210210
Agile<T> operator=( T^ object ) throw();

docs/cppcx/platform-array-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Compiler option: **/ZW**
5757
5858
Initializes a one-dimensional, modifiable array of types specified by the class template parameter, *T*.
5959
60-
## Syntax
60+
### Syntax
6161
6262
```cpp
6363
Array(unsigned int size);
@@ -83,7 +83,7 @@ For more information about how to create instances of Platform::Array, see [Arra
8383

8484
Retrieves a reference to the array element at the specified index location.
8585

86-
## Syntax
86+
### Syntax
8787

8888
```cpp
8989
T& get(unsigned int index) const;
@@ -102,7 +102,7 @@ The array element specified by the `index` parameter.
102102
103103
Retrieves a handle to the current array.
104104
105-
## Syntax
105+
### Syntax
106106
107107
```cpp
108108
property Array^ Value;

docs/cppcx/platform-collections-backinsertiterator-class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The BackInsertIterator class implements the rules required by the [back_insert_i
5757

5858
Initializes a new instance of the `BackInsertIterator` class.
5959

60-
## Syntax
60+
### Syntax
6161

6262
```
6363
explicit BackInsertIterator(
@@ -77,7 +77,7 @@ A `BackInsertIterator` inserts elements after the last element of the object spe
7777

7878
Appends the specified object to the end of the current sequential collection.
7979

80-
## Syntax
80+
### Syntax
8181

8282
```
8383
BackInsertIterator& operator=( const T& t);
@@ -96,7 +96,7 @@ A reference to the current BackInsertIterator.
9696

9797
Retrieves a reference to the current BackInsertIterator.
9898

99-
## Syntax
99+
### Syntax
100100

101101
```
102102
BackInsertIterator& operator*();
@@ -114,7 +114,7 @@ This operator returns a reference to the current BackInsertIterator; not to any
114114

115115
Returns a reference to the current BackInsertIterator. The iterator is unmodified.
116116

117-
## Syntax
117+
### Syntax
118118

119119
```
120120
BackInsertIterator& operator++();

docs/cppcx/platform-exception-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public:
114114
property int HResult { int get(); }
115115
```
116116

117-
## Property Value
117+
### Property Value
118118

119119
An HRESULT value.
120120

@@ -132,7 +132,7 @@ Message that describes the error.
132132
public:property String^ Message;
133133
```
134134

135-
## Property Value
135+
### Property Value
136136

137137
In exceptions that originate in the Windows Runtime, this is a system-supplied description of the error.
138138

docs/data/oledb/cmyprovidersource-myproviderds-h.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,6 @@ The data source object also inherits from several 'Impl' classes. Each class pro
3030
3131
Whenever the client calls `QueryInterface` for an interface on the data source, it goes through the following COM map:
3232
33-
```cpp
34-
/////////////////////////////////////////////////////////////////////////
35-
// CCustomSource
36-
class ATL_NO_VTABLE CCustomSource :
37-
public CComObjectRootEx<CComSingleThreadModel>,
38-
public CComCoClass<CCustomSource, &CLSID_Custom>,
39-
public IDBCreateSessionImpl<CCustomSource, CCustomSession>,
40-
public IDBInitializeImpl<CCustomSource>,
41-
public IDBPropertiesImpl<CCustomSource>,
42-
public IPersistImpl<CCustomSource>,
43-
public IInternalConnectionImpl<CCustomSource>
44-
```
45-
46-
All the COM components derive from `CComObjectRootEx` and `CComCoClass`. `CComObjectRootEx` provides all the implementation for the `IUnknown` interface. It can handle any threading model. `CComCoClass` handles any error support required. If you want to send richer error information to the client, you can use some of the error APIs in `CComCoClass`.
47-
48-
The data source object also inherits from several 'Impl' classes. Each class provides the implementation for an interface. The data source object implements the `IPersist`, `IDBProperties`, `IDBInitialize`, and `IDBCreateSession` interfaces. Each interface is required by OLE DB to implement the data source object. You can choose to support or not support particular functionality by inheriting or not inheriting from one of these 'Impl' classes. If you want to support the `IDBDataSourceAdmin` interface, you inherit from the `IDBDataSourceAdminImpl` class to get the functionality required.
49-
50-
## COM Map
51-
52-
Whenever the client calls `QueryInterface` for an interface on the data source, it goes through the following COM map:
53-
5433
```cpp
5534
BEGIN_COM_MAP(CCustomSource)
5635
COM_INTERFACE_ENTRY(IDBCreateSession)

0 commit comments

Comments
 (0)