[all-commits] [llvm/llvm-project] cc5b77: [clang] Introduce -Warray-parameter

serge-sans-paille via All-commits all-commits at lists.llvm.org
Fri Jul 8 13:37:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc5b77273af3705b6f5cf574567b49d5158bb3a9
      https://github.com/llvm/llvm-project/commit/cc5b77273af3705b6f5cf574567b49d5158bb3a9
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Misc/warning-wall.c
    A clang/test/Sema/array-parameter.c
    A clang/test/Sema/array-parameter.cpp

  Log Message:
  -----------
  [clang] Introduce -Warray-parameter

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

Differential Revision: https://reviews.llvm.org/D128449




More information about the All-commits mailing list