Skip to content

Commit 4d3916e

Browse files
committed
add doc
1 parent 2ec0afd commit 4d3916e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/unintended-char-ostream-output.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ intent, by default, it will cast to ``unsigned int`` for ``unsigned char`` and
2727
std::cout << static_cast<int>(v); // when v is signed char
2828

2929
To avoid lengthy cast statements, add prefix ``+`` to the variable can also
30-
suppress warnings.
30+
suppress warnings because unary expression will promote the value to an ``int``.
3131

3232
.. code-block:: c++
3333

clang-tools-extra/docs/clang-tidy/checks/list.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Clang-Tidy Checks
158158
:doc:`bugprone-undelegated-constructor <bugprone/undelegated-constructor>`,
159159
:doc:`bugprone-unhandled-exception-at-new <bugprone/unhandled-exception-at-new>`,
160160
:doc:`bugprone-unhandled-self-assignment <bugprone/unhandled-self-assignment>`,
161-
:doc:`bugprone-unintended-char-ostream-output <bugprone/unintended-char-ostream-output>`,
161+
:doc:`bugprone-unintended-char-ostream-output <bugprone/unintended-char-ostream-output>`, "Yes"
162162
:doc:`bugprone-unique-ptr-array-mismatch <bugprone/unique-ptr-array-mismatch>`, "Yes"
163163
:doc:`bugprone-unsafe-functions <bugprone/unsafe-functions>`,
164164
:doc:`bugprone-unused-local-non-trivial-variable <bugprone/unused-local-non-trivial-variable>`,

0 commit comments

Comments
 (0)