[all-commits] [llvm/llvm-project] 332be1: [clang-tidy]fix readability-implicit-bool-conversi...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Sun Jan 14 17:11:28 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 332be179e13df924971f752236f5cf3c6483b588
https://github.com/llvm/llvm-project/commit/332be179e13df924971f752236f5cf3c6483b588
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-allow-in-conditions.cpp
Log Message:
-----------
[clang-tidy]fix readability-implicit-bool-conversion false-positives when comparison bool bitfield (#77878)
Fixes: #76817
For ignoring comparison and xor operator, it needs
to use `ImplicitCastFromBool` without ignoring
exception cases.
This patch splits ignoring exception cases logic
from `ImplicitCastFromBool` and only applies
it during matching targeted AST.
More information about the All-commits
mailing list