[PATCH] D62750: Show note for -Wmissing-prototypes for functions with parameters

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 31 14:01:22 PDT 2019


aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

There was a search for non-prototype declarations for the function, but
we only showed the results for zero-parameter functions. Now we show the
note for functions with parameters as well, but we omit the fix-it hint
suggesting to add `void`.


Repository:
  rC Clang

https://reviews.llvm.org/D62750

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaDecl.cpp
  test/Sema/warn-missing-prototypes.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62750.202478.patch
Type: text/x-patch
Size: 4528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190531/10fb4ddf/attachment-0001.bin>


More information about the cfe-commits mailing list