[clang] [clang-tools-extra] [Clang] Default the warning for chained comparison to an error. (PR #128145)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 27 07:30:35 PST 2025


earnol wrote:

I do not think `bugprone-chained-comparison` can be removed at this point. Please look into example line 11: https://godbolt.org/z/TTxrb1WcG. Please notice that not all issues highlighted by `bugprone-chained-comparison` are detected by `warn_consecutive_comparision`. Thus i believe `bugprone-chained-comparison` cannot be removed without additional improvements of `warn_consecutive_comparision`.

https://github.com/llvm/llvm-project/pull/128145


More information about the cfe-commits mailing list