[clang-tools-extra] [clang-tidy] Add performance-bool-bitwise-operation check (PR #142324)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 6 07:52:49 PDT 2025
================
@@ -136,6 +136,13 @@ New checks
Finds unintended character output from ``unsigned char`` and ``signed char``
to an ``ostream``.
+- New :doc:`performance-bool-bitwise-operation
+ <clang-tidy/checks/performance/bool-bitwise-operation>` check.
+
+ Finds potentially inefficient use of bitwise operators such as ``&``, ``|``
+ and their compound analogues on boolean values where logical operators like
----------------
EugeneZelenko wrote:
```suggestion
and their compound analogues on Boolean values where logical operators like
```
https://github.com/llvm/llvm-project/pull/142324
More information about the cfe-commits
mailing list