[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 07:02:45 PST 2025
================
@@ -7409,6 +7409,11 @@ def warn_c23_compat_utf8_string : Warning<
def note_cxx20_c23_compat_utf8_string_remove_u8 : Note<
"remove 'u8' prefix to avoid a change of behavior; "
"Clang encodes unprefixed narrow string literals as UTF-8">;
+def warn_c23_compat_restrict_pointers_to_array : Warning<
+ "'restrict' qualifier on pointers to arrays is incompatible with C17 and earlier">,
----------------
AaronBallman wrote:
```suggestion
"'restrict' qualifier on an array of pointers is incompatible with C standards before C23">,
```
https://github.com/llvm/llvm-project/pull/120896
More information about the cfe-commits
mailing list