[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


================
@@ -0,0 +1,42 @@
+.. title:: clang-tidy - performance-bool-bitwise-operation
+
+performance-bool-bitwise-operation
+==================================
+
+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