[clang] [Clang] Add '-Warray-compare' flag for C++ below version 20 (PR #118031)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 07:04:22 PST 2024


================
@@ -10264,6 +10264,11 @@ def warn_depr_array_comparison : Warning<
   "to compare array addresses, use unary '+' to decay operands to pointers">,
   InGroup<DeprecatedArrayCompare>;
 
+def warn_array_comparison : Warning<
+  "comparison between two arrays; "
----------------
cor3ntin wrote:

can you create the diagnostic group inline?

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


More information about the cfe-commits mailing list