File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1313
1414namespace 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ performance-bool-bitwise-operation
44==================================
55
66Finds 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
1111to implicit integer conversions and missed short-circuit evaluation.
1212
1313.. code-block :: c++
You can’t perform that action at this time.
0 commit comments