[clang] [sema] Improve -Wsign-compare (PR #65684)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 8 08:22:09 PDT 2023


apple-fcloutier wrote:

Yes, there's this way and also when you compare integers smaller than `int`, but those don't trigger -Wsign-compare. -Wsign-compare only triggers if a signed operand is converted to an unsigned operand. This is a PR description bug :)

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


More information about the cfe-commits mailing list