[Clang] Add -Wtype-limits to -Wextra for GCC compatibility
authorShivam Gupta <shivam98.tkg@gmail.com>
Wed, 1 Feb 2023 03:14:04 +0000 (08:44 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Wed, 1 Feb 2023 13:59:16 +0000 (19:29 +0530)
commit95668c0d97e6184729f3a3e9621a58d9edffb6b0
tree7847e72ac961de1e466c4760943cc2a0bda1368b
parentd65aeeb360e279dfc7c9ddf7c8555b585e9df0d4
[Clang] Add -Wtype-limits to -Wextra for GCC compatibility

GCC added the -Wtype-limits warning group to -Wextra around
GCC 4.4 and the group has some very helpful extra warnings
like tautological comparison type limit warnings
(comparingan unsigned int to see if it's positive, etc).

Fix https://github.com/llvm/llvm-project/issues/58375

Reviewed By: #clang-vendors, thesamesam

Differential Revision: https://reviews.llvm.org/D142826
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/test/Sema/tautological-constant-compare.c