[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 23:48:38 PST 2025
Chase-san wrote:
I do have a few concerns. If this particular warning is reported when we have a `bool || int` or similar situation the general consensus will be to simply disable the warning because that is an extremely common pattern.
Allowances for such things are generally made because they are considered to be safe. This was the case in C17. though it was likely just a macro in c17 rather than a proper type I doubt that the semantics have changed.
https://github.com/llvm/llvm-project/pull/171070
More information about the cfe-commits
mailing list