Skip to content

Commit 433d4c7

Browse files
committed
x
1 parent eba6505 commit 433d4c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/docs/CodingStandards.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ When casting, use ``static_cast``, ``reinterpret_cast``, and ``const_cast``,
590590
rather than C-style casts. There are two exceptions to this:
591591

592592
* Although ``[[maybe_unused]]`` is preferred to suppress warnings about unused
593-
variables in simple cases, casting to ``void`` using a C-style cast can also
594-
be used to suppress such warnings if using ``[[maybe_unused]]`` is not
595-
acceptable.
593+
variables in simple cases (for example, variables used only in asserts) casting
594+
to ``void`` using a C-style cast can also be used to suppress such warnings if
595+
using ``[[maybe_unused]]`` is not acceptable.
596596

597597
* When casting between integral types (including enums that are not strongly-
598598
typed), functional-style casts are permitted as an alternative to

0 commit comments

Comments
 (0)