[all-commits] [llvm/llvm-project] 042444: [clang-tidy]avoid readability-implicit-bool-conver...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Thu Jan 11 22:29:02 PST 2024
Branch: refs/heads/users/ccc/76817-clang-tidy-readability-implicit-bool-conversion-incorrectly-treats-bool-bitfield-comparison-with-bool-variable
Home: https://github.com/llvm/llvm-project
Commit: 0424444c994785c06ed813fdf13c47c30e378c16
https://github.com/llvm/llvm-project/commit/0424444c994785c06ed813fdf13c47c30e378c16
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-01-12 (Fri, 12 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]avoid readability-implicit-bool-conversion false-positives when comparison bool bitfield
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 when add matcher
More information about the All-commits
mailing list