[clang] [clang][Sema] Warn consecutive builtin comparisons in an expression (PR #92200)

Youngsuk Kim via cfe-commits cfe-commits at lists.llvm.org
Wed May 15 09:45:21 PDT 2024


JOE1994 wrote:

> Do we know why GCC elected to go that route? This seems like something that should be enabled by default because the false positive rate should be quite low.

It seems like `gcc` doesn't enable `-Wparentheses` by default, while `clang` enables it by default.

I will add a follow-up commit to remove `DefaultIgnore` and update affected Clang tests :)

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


More information about the cfe-commits mailing list