[all-commits] [llvm/llvm-project] 7347e5: [Clang] Add '-Warray-compare' flag for C++ below v...
Amr Hesham via All-commits
all-commits at lists.llvm.org
Wed Dec 4 10:33:49 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7347e5e89a671d675ba144e181e3d24bd072f527
https://github.com/llvm/llvm-project/commit/7347e5e89a671d675ba144e181e3d24bd072f527
Author: Amr Hesham <amr96 at programmer.net>
Date: 2024-12-04 (Wed, 04 Dec 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaExpr.cpp
M clang/test/Analysis/reference.cpp
M clang/test/Sema/warn-stringcompare.c
M clang/test/SemaCXX/deprecated.cpp
A clang/test/SemaCXX/warn-array-comparion.cpp
M clang/test/SemaCXX/warn-self-comparisons.cpp
Log Message:
-----------
[Clang] Add '-Warray-compare' flag for C++ below version 20 (#118031)
Currently, we support `-wdeprecated-array-compare` for C++20 or above
and don't report any warning for older versions, this PR supports
`-Warray-compare` for older versions and for GCC compatibility.
Fixes #114770
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