Skip to content

Commit bd3ffbe

Browse files
committed
Add links to other docs
1 parent 40dc8cf commit bd3ffbe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8236,6 +8236,8 @@ its underlying representation to be a WebAssembly ``funcref``.
82368236
def PreferredTypeDocumentation : Documentation {
82378237
let Category = DocCatField;
82388238
let Content = [{
8239+
.. _langext-preferred_type_documentation:
8240+
82398241
This attribute allows adjusting the type of a bit-field in debug information.
82408242
This can be helpful when a bit-field is intended to store an enumeration value,
82418243
but has to be specified as having the enumeration's underlying type in order to

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def Padded : DiagGroup<"padded", [PaddedBitField]>;
635635
def UnalignedAccess : DiagGroup<"unaligned-access">;
636636
def MSBitfieldCompatibility : DiagGroup<"ms-bitfield-compatibility"> {
637637
code Documentation = [{
638-
Under the MSVC ABI adjacemt bit-fields are not packed if the underlying type
638+
Under the MSVC ABI adjacent bit-fields are not packed if the underlying type
639639
has a different storage size. This warning indicates that a pair of adjacent
640640
bit-fields may not pack in the same way due to this behavioural difference.
641641

@@ -673,8 +673,9 @@ def MSBitfieldCompatibility : DiagGroup<"ms-bitfield-compatibility"> {
673673
where you cannot specify the underlying type, the options are to either switch
674674
to int sized storage for all specifiers or to resort to declaring the
675675
bit-fields with explicit integer storage types and cast in and out of the field.
676-
If such a solution is required the `preferred_type` attribute can be used to
677-
convey the actual field type to debuggers and other tooling.
676+
If such a solution is required the
677+
:ref:`preferred_type <langext-preferred_type_documentation>` attribute can be
678+
used to convey the actual field type to debuggers and other tooling.
678679
}];
679680
}
680681

0 commit comments

Comments
 (0)