File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 8782
8782
8783
8783
\pnum
8784
8784
The attribute may be applied to the declaration of a class,
8785
- a \grammarterm {typedef-name}, a variable, a non-static data member,
8785
+ a \grammarterm {typedef-name},
8786
+ a variable (including a structured binding declaration),
8787
+ a non-static data member,
8786
8788
a function, an enumeration, or an enumerator.
8787
8789
8788
8790
\pnum
8789
- \begin {note }
8790
- For an entity marked \tcode {maybe_unused}, implementations
8791
- should not emit a warning that the entity is unused, or
8792
- that the entity is used despite the presence of the attribute.
8793
- \end {note }
8791
+ For an entity marked \tcode {maybe_unused},
8792
+ implementations should not emit a warning
8793
+ that the entity or its structured bindings (if any)
8794
+ are used or unused.
8795
+ For a structured binding declaration not marked \tcode {maybe_unused},
8796
+ implementations should not emit such a warning unless
8797
+ all of its structured bindings are unused.
8794
8798
8795
8799
\pnum
8796
8800
A name or entity declared without the \tcode {maybe_unused} attribute
You can’t perform that action at this time.
0 commit comments