[all-commits] [llvm/llvm-project] 95668c: [Clang] Add -Wtype-limits to -Wextra for GCC compa...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Wed Feb 1 06:00:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95668c0d97e6184729f3a3e9621a58d9edffb6b0
      https://github.com/llvm/llvm-project/commit/95668c0d97e6184729f3a3e9621a58d9edffb6b0
  Author: Shivam Gupta <shivam98.tkg at gmail.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/test/Sema/tautological-constant-compare.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list