[PATCH] D128449: [clang] Introduce -Warray-parameter
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 23 08:11:30 PDT 2022
serge-sans-paille created this revision.
serge-sans-paille added reviewers: RKSimon, aaron.ballman, tstellar.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This warning exist in GCC[0] and warns about re-declarations of functions
involving arguments of array or pointer types of inconsistent kinds or forms.
This is not the exact same implementation as GCC's : there's no warning level
and that flag has no effect on -Warray-bounds.
[0] https://gcc.gnu.org/onlinedocs/gcc-12.1.0/gcc/Warning-Options.html#index-Wno-array-parameter
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128449
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/array-parameter.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128449.439402.patch
Type: text/x-patch
Size: 5275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220623/a5011d87/attachment-0001.bin>
More information about the cfe-commits
mailing list