Skip to content

Commit b529e9e

Browse files
committed
review && change comment in header
1 parent 8c97d47 commit b529e9e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

clang-tools-extra/clang-tidy/performance/BoolBitwiseOperationCheck.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
namespace clang::tidy::performance {
1515

16-
/// Finds potentially unefficient uses of bitwise operators such as `|`,
17-
/// `&` and their compound analogues with `bool` type and suggests replacing
18-
/// them with logical ones, like `||` and `&&`.
16+
/// Finds potentially inefficient use of bitwise operators such as ``&``, ``|``
17+
/// and their compound analogues on Boolean values where logical operators like
18+
/// ``&&`` and ``||`` would be more appropriate.
1919
///
2020
/// For the user-facing documentation see:
2121
/// http://clang.llvm.org/extra/clang-tidy/checks/performance/bool-bitwise-operation.html

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ New checks
140140
<clang-tidy/checks/performance/bool-bitwise-operation>` check.
141141

142142
Finds potentially inefficient use of bitwise operators such as ``&``, ``|``
143-
and their compound analogues on boolean values where logical operators like
143+
and their compound analogues on Boolean values where logical operators like
144144
``&&`` and ``||`` would be more appropriate.
145145

146146
- New :doc:`portability-avoid-pragma-once

clang-tools-extra/docs/clang-tidy/checks/performance/bool-bitwise-operation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ performance-bool-bitwise-operation
44
==================================
55

66
Finds potentially inefficient use of bitwise operators such as ``&``, ``|``
7-
and their compound analogues on boolean values where logical operators like
7+
and their compound analogues on Boolean values where logical operators like
88
``&&`` and ``||`` would be more appropriate.
99

10-
Bitwise operations on booleans can incur unnecessary performance overhead due
10+
Bitwise operations on Booleans can incur unnecessary performance overhead due
1111
to implicit integer conversions and missed short-circuit evaluation.
1212

1313
.. code-block:: c++

0 commit comments

Comments
 (0)