File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8236,6 +8236,8 @@ its underlying representation to be a WebAssembly ``funcref``.
82368236def PreferredTypeDocumentation : Documentation {
82378237 let Category = DocCatField;
82388238 let Content = [{
8239+ .. _langext-preferred_type_documentation:
8240+
82398241This attribute allows adjusting the type of a bit-field in debug information.
82408242This can be helpful when a bit-field is intended to store an enumeration value,
82418243but has to be specified as having the enumeration's underlying type in order to
Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ def Padded : DiagGroup<"padded", [PaddedBitField]>;
635635def UnalignedAccess : DiagGroup<"unaligned-access">;
636636def 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
You can’t perform that action at this time.
0 commit comments