[clang] [Clang] Add '-Warray-compare' flag for C++ below version 20 (PR #118031)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 2 10:06:59 PST 2024
================
@@ -10264,6 +10264,10 @@ 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 compare their addresses and will be deprecated in c++20; "
+ "to compare array addresses, use unary '+' to decay operands to pointers">;
----------------
AmrDeveloper wrote:
I think i misunderstood inlining diagnostic here, can you give me example about how inline it
https://github.com/llvm/llvm-project/pull/118031
More information about the cfe-commits
mailing list