Skip to content

Commit

Permalink
Fix missing representation glossary entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Aug 3, 2023
1 parent 4ef127e commit 4dd00cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ Attribute ``repr``
| $$usize$$
AlignmentDecrease ::=
$$packed$$ $$($$ DecimalLiteral $$)$$
$$packed$$

AlignmentIncrease ::=
$$align$$ $$($$ DecimalLiteral $$)$$
Expand Down
12 changes: 12 additions & 0 deletions src/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5646,6 +5646,18 @@ representation
:dp:`fls_69j7pq2o1iu`
See :t:`type representation`.

.. _fls_TSbBt6WzropN:

representation modifier
^^^^^^^^^^^^^^^^^^^^^^^

:dp:`fls_BCvXL7HkXqdZ`
A :dt:`representation modifier` is a :t:`construct` that modifies the
:t:`alignment` of a :t:`type`.

:dp:`fls_TAVyjj66UBUo`
See :s:`Alignment`.

.. _fls_x7yd6o4akrrg:

reserved keyword
Expand Down
9 changes: 5 additions & 4 deletions src/types-and-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1456,10 +1456,11 @@ of :t:`[field]s` of :t:`size` zero and :t:`alignment` one.
:t:`attribute` :c:`repr` has :t:`default representation`.

:dp:`fls_qkkc8x2oghst`
:t:`Type representation` may be modified using :t:`attribute` :c:`[repr]`'s
:c:`align` and :c:`packed` :t:`[representation modifier]s`. A
:t:`representation modifier` shall apply only to a :t:`struct type` or a
:t:`union type` subject to :t:`C representation` or :t:`default representation`.
:t:`Type representation` may be specified using :t:`attribute` :c:`[repr]` and
modified further using :t:`attribute` :c:`[repr]`'s :s:`Alignment`
:t:`[representation modifier]s`. A :t:`representation modifier` shall apply only
to a :t:`struct type` or a :t:`union type` subject to :t:`C representation` or
:t:`default representation`.

.. _fls_xc1hof4qbf6p:

Expand Down

0 comments on commit 4dd00cf

Please sign in to comment.