[clang] [Clang] Warning as error Array Comparisons from C++26 (PR #118872)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 5 13:53:41 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.
----------------
erichkeane wrote:
```suggestion
starting from C++26, this warning is enabled as an error by default.
```
https://github.com/llvm/llvm-project/pull/118872
More information about the cfe-commits
mailing list