[PATCH] D116636: [WIP] Enable `-Wstrict-calls-without-prototype` by default

Dan Liew via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 4 17:42:20 PST 2022


delcypher created this revision.
delcypher added reviewers: arphaman, rapidsna, fcloutier, NoQ.
delcypher requested review of this revision.
Herald added a project: clang.

This patch enables the `-Wstrict-calls-without-prototype` warning by
default and fixes the existing clang test suite to pass.

This patch is considered work-in-progress because the patch it is
based on is not finalized. It is also unclear at this point whether this warning should actually
be enabled by default. So this patch serves to illustrate the changes
that would need to be made to have the warning on by default.

rdar://87118271


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116636

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/test/Analysis/casts.c
  clang/test/Analysis/inline.c
  clang/test/Analysis/misc-ps-region-store.m
  clang/test/Analysis/misc-ps.m
  clang/test/Analysis/null-deref-ps.c
  clang/test/Analysis/solver-sym-simplification-adjustment.c
  clang/test/Analysis/solver-sym-simplification-concreteint.c
  clang/test/CodeGen/functions.c
  clang/test/Sema/arg-duplicate.c
  clang/test/Sema/block-misc.c
  clang/test/Sema/extern-redecl.c
  clang/test/Sema/function-redecl.c
  clang/test/Sema/function.c
  clang/test/Sema/knr-def-call.c
  clang/test/Sema/knr-variadic-def.c
  clang/test/Sema/merge-decls.c
  clang/test/Sema/sizeless-1.c
  clang/test/Sema/unused-expr.c
  clang/test/SemaObjC/nonnull.m
  clang/test/SemaObjC/protocol-archane.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116636.397432.patch
Type: text/x-patch
Size: 13615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220105/569000d4/attachment-0001.bin>


More information about the cfe-commits mailing list