Skip to content

Commit 926b19f

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C3081, C3130]
1 parent 7d2e926 commit 926b19f

24 files changed

+73
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 0362cb70-e24e-476f-a24d-8f5bb97c3afd
1010

1111
> 'function': a finalizer/destructor cannot be 'keyword'
1212
13+
## Remarks
14+
1315
A finalizer or destructor was declared incorrectly.
1416

1517
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).

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 1ac40bf2-f63e-439e-8921-47e6dadc8354
1010

1111
> 'constructor': a constructor cannot be 'keyword'
1212
13+
## Remarks
14+
1315
A constructor was declared incorrectly. See [Override Specifiers](../../extensions/override-specifiers-cpp-component-extensions.md) for more information.
1416

1517
## Example

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 4f5bdd52-a853-4f02-b160-6868e9190b9d
1010

1111
> 'named_argument': call of 'attribute' already initializes this member
1212
13+
## Remarks
14+
1315
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.
1416

1517
## Example

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 10da9b7c-e72d-4013-9925-c83e1bb142db
1010

1111
> 'attribute': anonymous usage not allowed
1212
13+
## Remarks
14+
1315
An attribute was not scoped correctly. For more information, see [User-Defined Attributes](../../extensions/user-defined-attributes-cpp-component-extensions.md).
1416

1517
## Example

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: cde725be-0936-40f6-9e57-e1d7d0710f83
1010

1111
> 'attribute': attribute cannot be repeated
1212
13+
## Remarks
14+
1315
Some attributes are declared such that, multiple occurrences of the attribute cannot be applied to a target.
1416

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 56353c9a-800c-474f-b428-3e5d2a7afc9a
1010

1111
> 'attribute': attribute is allowed on data members of attribute classes only
1212
13+
## Remarks
14+
1315
An attribute was applied incorrectly.
1416

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: b24bd8f8-e04f-4fbb-be57-4feb9165572e
1010

1111
> 'attribute': attribute must be scoped with 'assembly:' or 'module:'
1212
13+
## Remarks
14+
1315
A global attribute was used incorrectly.
1416

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: b3dded0f-76c9-42c1-991b-532eb8619661
1010

1111
> 'keyword': use [System::AttributeUsageAttribute] for managed attributes; use [Windows::Foundation::Metadata::AttributeUsageAttribute] for WinRT attributes
1212
13+
## Remarks
14+
1315
Use <xref:System.AttributeUsageAttribute> to declare **/clr** attributes. Use `Windows::Foundation::Metadata::AttributeUsageAttribute` to declare Windows Runtime attributes.
1416

1517
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)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 7a9c9eaf-08ef-442d-94a0-e457beee8549
1010

1111
> 'target' : unknown attribute qualifier
1212
13+
## Remarks
14+
1315
An invalid attribute target was specified.
1416

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 4f673766-d4f7-4632-94a5-d36a83f7f4b5
1010

1111
> illegal expression for named attribute argument 'field'
1212
13+
## Remarks
14+
1315
When initializing a named attribute argument, the value must be a compile time constant.
1416

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

0 commit comments

Comments
 (0)