[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 05:18:48 PDT 2024
================
@@ -250,6 +250,11 @@ Improvements to Clang's diagnostics
such as attempting to call ``free`` on an unallocated object. Fixes
`#79443 <https://github.com/llvm/llvm-project/issues/79443>`_.
+- Clang now does not warn in cases where bitand operator is
+ intentionally used with boolean operands, distinguishing it
+ from potential typographical errors or unintended bitwise operations.
+ Fixes (`#77601 <https://github.com/llvm/llvm-project/issues/77601>`)
----------------
AaronBallman wrote:
```suggestion
- Clang no longer warns when the ``bitand`` operator is used with boolean
operands, distinguishing it from potential typographical errors or unintended
bitwise operations. Fixes #GH77601.
```
https://github.com/llvm/llvm-project/pull/81976
More information about the cfe-commits
mailing list