Skip to content

Commit 22ffa29

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C3051, C3080]
1 parent 20a92e1 commit 22ffa29

22 files changed

+69
-1
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3052.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 87480c42-1ceb-4775-8d20-88c54a7bb6a6
1010

1111
> 'var' : variable doesn't appear in a data-sharing clause under a default(none) clause
1212
13+
## Remarks
14+
1315
If [default(none)](../../parallel/openmp/reference/openmp-clauses.md#default-openmp) is used, any variable used in the structured block must be explicitly specified as either [shared](../../parallel/openmp/reference/openmp-clauses.md#shared-openmp) or [private](../../parallel/openmp/reference/openmp-clauses.md#private-openmp).
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3053.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: ab9a25f3-e341-4f6e-8e69-069b4a963a64
1010

1111
> 'symbol' : 'threadprivate' is only valid for global or static data items
1212
13+
## Remarks
14+
1315
Symbols passed to [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) must either be global or static.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3055.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 60446ee0-18dd-48fc-9059-f0a14229dce8
1010

1111
> 'symbol' : symbol cannot be referenced before it is used in 'threadprivate' directive
1212
13+
## Remarks
14+
1315
A symbol was referenced and then used in a [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) clause, which is not allowed.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3056.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 9500173d-870b-49b3-8e88-0ee93586d19a
1010

1111
> 'symbol' : symbol is not in the same scope with 'threadprivate' directive
1212
13+
## Remarks
14+
1315
A symbol used in a [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) clause must be in the same scope as the `threadprivate` clause.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3057.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: b0b2ba88-9c74-4bec-bf60-8fc72eade34c
1010

1111
> 'symbol' : dynamic initialization of 'threadprivate' symbols is not currently supported
1212
13+
## Remarks
14+
1315
The initialized value of a symbol used in a [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) clause must be known at compile time.
1416

17+
## Examples
18+
1519
The following sample generates C3057:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3058.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 669d08c8-0b58-4351-88aa-c6e6e1af481c
1010

1111
> 'symbol' : symbol not declared as 'threadprivate' before it is used in the 'copyin' clause
1212
13+
## Remarks
14+
1315
A symbol must first be declared [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) before it can be used in a [copyin](../../parallel/openmp/reference/openmp-clauses.md#copyin) clause.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3059.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 57220324-8286-4cab-a1ab-45385eb1eae0
1010

1111
> 'var' : 'threadprivate' symbol cannot be used in the 'clause' clause
1212
13+
## Remarks
14+
1315
A [threadprivate](../../parallel/openmp/reference/openmp-directives.md#threadprivate) symbol was used in a clause.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3060.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 6282bb92-0546-4b59-9435-d3840bf93bdb
1010

1111
> 'member' : a friend function may not be defined inside a class using a qualified name (it may only be declared)
1212
13+
## Remarks
14+
1315
A friend function was defined using a qualified name, which is not allowed.
1416

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

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3062.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ ms.assetid: 78632e6d-255f-42c3-b124-31a9194ff86d
1010

1111
> 'enum': enumerator requires value since the underlying type is 'type'
1212
13+
## Remarks
14+
1315
You can specify an underlying type for an enumeration. However, some types require you to assign values to each enumerator.
1416

1517
For more information on enums, see [enum class](../../extensions/enum-class-cpp-component-extensions.md).
1618

19+
## Example
20+
1721
The following sample generates C3062:
1822

1923
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3063.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 0ecf6f1f-e4a7-487a-9fd5-79d8ac470001
1010

1111
> operator 'operator': all operands must have the same enumeration type
1212
13+
## Remarks
14+
1315
When using operators on enumerators, both operands must be of the enumeration type. For more information, see [How to: Define and consume enums in C++/CLI](../../dotnet/how-to-define-and-consume-enums-in-cpp-cli.md).
1416

1517
## Example

0 commit comments

Comments
 (0)