Skip to content

Commit 5514520

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C2201, C2230]
1 parent cbd976c commit 5514520

21 files changed

+56
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ helpviewer_keywords: ["C2201"]
99

1010
> '*identifier*' : must have external linkage in order to be exported/imported
1111
12+
## Remarks
13+
1214
The exported identifier is **`static`**.
1315

1416
## Example

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 5497df43-86f6-43d5-b6cb-723c4c589b10
1010

1111
> delete operator cannot specify bounds for an array
1212
13+
## Remarks
14+
1315
With the **/Za** (ANSI) option, the **`delete`** operator can delete an entire array but not parts or specific members of the array.
1416

17+
## Example
18+
1519
The following sample generates C2203:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: bbe506d4-7863-44af-8709-161881c4b4ba
1010

1111
> 'type' : type definition found within parentheses
1212
13+
## Remarks
14+
1315
The type is defined as an operand or in prototype scope.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: bfc19840-4a48-4da5-8e69-7069989f1d2c
1010

1111
> 'identifier' : cannot initialize extern variables with block scope
1212
13+
## Remarks
14+
1315
An **`extern`** variable cannot be initialized in a function.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: d7fba68b-aa28-4885-a9a0-27107358f066
1010

1111
> 'function' : typedef cannot be used for function definition
1212
13+
## Remarks
14+
1315
A **`typedef`** is used to define a function type.
1416

17+
## Example
18+
1519
The following sample generates C2206:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: d7d7b537-68f1-420a-9835-b5b6f2cb5cfd
1010

1111
> 'member': a member of a class template cannot acquire a function type
1212
13+
## Remarks
14+
1315
The `member` of the class template was previously parsed as a non-static data member. It cannot be redefined as a member function.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 9ae704bc-bf70-45f1-8e47-0470f21edd4e
1010

1111
> 'type' : no members defined using this type
1212
13+
## Remarks
14+
1315
An identifier resolving to a type name is in an aggregate declaration, but the compiler cannot declare a member.
1416

17+
## Example
18+
1519
The following sample generates C2208:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 3fdab304-272c-4d07-bfd4-fad75170e536
1010

1111
> 'identifier' : __based not available for pointers to functions
1212
13+
## Remarks
14+
1315
Pointers to functions cannot be declared **`__based`**. If you need code-based data, use the **`__declspec`** keyword or the `data_seg` pragma.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: ff012278-7f3b-4d49-aaed-2349756f6225
1010

1111
> 'modifier' : illegal argument to __based
1212
13+
## Remarks
14+
1315
The argument modifying **`__based`** is invalid.
1416

17+
## Example
18+
1519
The following sample generates C2213:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 250f6bdc-a5e1-495f-a1e8-6e8e7021ad9d
1010

1111
> 'keyword1' cannot be used with ' keyword2'
1212
13+
## Remarks
14+
1315
Two keywords that are mutually exclusive were used together.
1416

1517
## Examples

0 commit comments

Comments
 (0)