[PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang
Paul Titei via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 25 07:18:31 PST 2016
ptitei created this revision.
ptitei added a reviewer: cfe-commits.
Implementation for C only warning -Wstrict-prototypes. Function declarations which have no parameters specified are diagnosed and also K&R function definitions with more than 0 parameters which are not preceded by previous prototype declaration.
http://reviews.llvm.org/D16533
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/Sema/warn-strict-prototypes.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16533.45864.patch
Type: text/x-patch
Size: 6806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160125/d218ae26/attachment.bin>
More information about the cfe-commits
mailing list