[clang] [Clang] Warning as error Array Comparisons from C++26 (PR #118872)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 6 09:52:51 PST 2024


================
@@ -428,6 +428,9 @@ New Compiler Flags
 - The ``-Warray-compare`` warning has been added to warn about array comparison
   on versions older than C++20.
 
+- The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison
+  starting from C++26, this warn is error by default.
----------------
AmrDeveloper wrote:

Done

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


More information about the cfe-commits mailing list