Skip to content

Commit df83540

Browse files
Merge pull request #5662 from Rageking8/structure-error-references-in-range-c3081-c3130
Structure error references in range [C3081, C3130]
2 parents 2e670a1 + f20c370 commit df83540

24 files changed

+164
-118
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3084"
32
title: "Compiler Error C3084"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3084"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3084"]
66
helpviewer_keywords: ["C3084"]
7-
ms.assetid: 0362cb70-e24e-476f-a24d-8f5bb97c3afd
87
---
98
# Compiler Error C3084
109

11-
'function': a finalizer/destructor cannot be 'keyword'
10+
> 'function': a finalizer/destructor cannot be 'keyword'
11+
12+
## Remarks
1213

1314
A finalizer or destructor was declared incorrectly.
1415

1516
For example, a destructor should not be marked as sealed. The destructor will be inaccessible to derived types. For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md) and [Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI)](../../dotnet/how-to-define-and-consume-classes-and-structs-cpp-cli.md#BKMK_Destructors_and_finalizers).
1617

1718
## Example
1819

19-
The following sample generates C3084.
20+
The following example generates C3084.
2021

2122
```cpp
2223
// C3084.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3085"
32
title: "Compiler Error C3085"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3085"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3085"]
66
helpviewer_keywords: ["C3085"]
7-
ms.assetid: 1ac40bf2-f63e-439e-8921-47e6dadc8354
87
---
98
# Compiler Error C3085
109

11-
'constructor': a constructor cannot be 'keyword'
10+
> 'constructor': a constructor cannot be 'keyword'
11+
12+
## Remarks
1213

1314
A constructor was declared incorrectly. See [Override Specifiers](../../extensions/override-specifiers-cpp-component-extensions.md) for more information.
1415

1516
## Example
1617

17-
The following sample generates C3085.
18+
The following example generates C3085.
1819

1920
```cpp
2021
// C3085.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3087"
32
title: "Compiler Error C3087"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3087"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3087"]
66
helpviewer_keywords: ["C3087"]
7-
ms.assetid: 4f5bdd52-a853-4f02-b160-6868e9190b9d
87
---
98
# Compiler Error C3087
109

11-
'named_argument': call of 'attribute' already initializes this member
10+
> 'named_argument': call of 'attribute' already initializes this member
11+
12+
## Remarks
1213

1314
A named argument was specified in the same attribute block as an unnamed argument for the same value. Specify only a named or unnamed argument.
1415

1516
## Example
1617

17-
The following sample generates C3087.
18+
The following example generates C3087.
1819

1920
```cpp
2021
// C3087.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3094"
32
title: "Compiler Error C3094"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3094"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3094"]
66
helpviewer_keywords: ["C3094"]
7-
ms.assetid: 10da9b7c-e72d-4013-9925-c83e1bb142db
87
---
98
# Compiler Error C3094
109

11-
'attribute': anonymous usage not allowed
10+
> 'attribute': anonymous usage not allowed
11+
12+
## Remarks
1213

1314
An attribute was not scoped correctly. For more information, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1415

1516
## Example
1617

17-
The following sample generates C3094.
18+
The following example generates C3094.
1819

1920
```cpp
2021
// C3094.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3095"
32
title: "Compiler Error C3095"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3095"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3095"]
66
helpviewer_keywords: ["C3095"]
7-
ms.assetid: cde725be-0936-40f6-9e57-e1d7d0710f83
87
---
98
# Compiler Error C3095
109

11-
'attribute': attribute cannot be repeated
10+
> 'attribute': attribute cannot be repeated
11+
12+
## Remarks
1213

1314
Some attributes are declared such that, multiple occurrences of the attribute cannot be applied to a target.
1415

1516
For more information, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1617

1718
## Example
1819

19-
The following sample generates C3095.
20+
The following example generates C3095.
2021

2122
```cpp
2223
// C3095.cpp

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Error C3096"
32
title: "Compiler Error C3096"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3096"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3096"]
66
helpviewer_keywords: ["C3096"]
7-
ms.assetid: 56353c9a-800c-474f-b428-3e5d2a7afc9a
87
---
98
# Compiler Error C3096
109

11-
'attribute': attribute is allowed on data members of attribute classes only
10+
> 'attribute': attribute is allowed on data members of attribute classes only
11+
12+
## Remarks
1213

1314
An attribute was applied incorrectly.
1415

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3097"
32
title: "Compiler Error C3097"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3097"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3097"]
66
helpviewer_keywords: ["C3097"]
7-
ms.assetid: b24bd8f8-e04f-4fbb-be57-4feb9165572e
87
---
98
# Compiler Error C3097
109

11-
'attribute': attribute must be scoped with 'assembly:' or 'module:'
10+
> 'attribute': attribute must be scoped with 'assembly:' or 'module:'
11+
12+
## Remarks
1213

1314
A global attribute was used incorrectly.
1415

1516
For more information, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1617

1718
## Example
1819

19-
The following sample generates C3097.
20+
The following example generates C3097.
2021

2122
```cpp
2223
// C3097.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3099"
32
title: "Compiler Error C3099"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3099"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3099"]
66
helpviewer_keywords: ["C3099"]
7-
ms.assetid: b3dded0f-76c9-42c1-991b-532eb8619661
87
---
98
# Compiler Error C3099
109

11-
'keyword': use [System::AttributeUsageAttribute] for managed attributes; use [Windows::Foundation::Metadata::AttributeUsageAttribute] for WinRT attributes
10+
> 'keyword': use [System::AttributeUsageAttribute] for managed attributes; use [Windows::Foundation::Metadata::AttributeUsageAttribute] for WinRT attributes
11+
12+
## Remarks
1213

1314
Use <xref:System.AttributeUsageAttribute> to declare **/clr** attributes. Use `Windows::Foundation::Metadata::AttributeUsageAttribute` to declare Windows Runtime attributes.
1415

1516
For more information about /CLR attributes, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md). For supported attributes in Windows Runtime, see [Windows.Foundation.Metadata namespace](/uwp/api/windows.foundation.metadata)
1617

1718
## Example
1819

19-
The following sample generates C3099 and shows how to fix it.
20+
The following example generates C3099 and shows how to fix it.
2021

2122
```cpp
2223
// C3099.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3100"
32
title: "Compiler Error C3100"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3100"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3100"]
66
helpviewer_keywords: ["C3100"]
7-
ms.assetid: 7a9c9eaf-08ef-442d-94a0-e457beee8549
87
---
98
# Compiler Error C3100
109

11-
'target' : unknown attribute qualifier
10+
> 'target' : unknown attribute qualifier
11+
12+
## Remarks
1213

1314
An invalid attribute target was specified.
1415

1516
For more information, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1617

1718
## Example
1819

19-
The following sample generates C3100.
20+
The following example generates C3100.
2021

2122
```cpp
2223
// C3100.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C3101"
32
title: "Compiler Error C3101"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3101"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3101"]
66
helpviewer_keywords: ["C3101"]
7-
ms.assetid: 4f673766-d4f7-4632-94a5-d36a83f7f4b5
87
---
98
# Compiler Error C3101
109

11-
illegal expression for named attribute argument 'field'
10+
> illegal expression for named attribute argument 'field'
11+
12+
## Remarks
1213

1314
When initializing a named attribute argument, the value must be a compile time constant.
1415

1516
For more information on attributes, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1617

1718
## Example
1819

19-
The following sample generates C3101.
20+
The following example generates C3101.
2021

2122
```cpp
2223
// C3101.cpp

0 commit comments

Comments
 (0)