[all-commits] [llvm/llvm-project] 2da57f: [Clang] Improve `-Wtautological-overlap-compare` d...
Yutong Zhu via All-commits
all-commits at lists.llvm.org
Fri May 9 16:11:49 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2da57f8105f0faff5cb7d671307f7cfc7ff2dce4
https://github.com/llvm/llvm-project/commit/2da57f8105f0faff5cb7d671307f7cfc7ff2dce4
Author: Yutong Zhu <115899167+YutongZhuu at users.noreply.github.com>
Date: 2025-05-10 (Sat, 10 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Analysis/CFG.cpp
M clang/lib/Sema/AnalysisBasedWarnings.cpp
M clang/test/Sema/warn-overlap.c
Log Message:
-----------
[Clang] Improve `-Wtautological-overlap-compare` diagnostics flag (#133653)
This PR attempts to improve the diagnostics flag
`-Wtautological-overlap-compare` (#13473). I have added code to warn
about float-point literals and character literals. I have also changed
the warning message for the non-overlapping case to provide a more
correct hint to the user.
Fixes #13473.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list