[PATCH] D59402: Fix-it hints for -Wmissing-{prototypes,variable-declarations}
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 16 09:30:43 PDT 2019
aaronpuchert updated this revision to Diff 190966.
aaronpuchert added a comment.
Don't suggest adding `static` if there is a non-prototype declaration. This required a minor refactoring: we let `ShouldWarnAboutMissingPrototype` return any kind of declaration it finds and check for the number of parameters at the call site.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59402/new/
https://reviews.llvm.org/D59402
Files:
lib/Sema/SemaDecl.cpp
test/Sema/warn-missing-prototypes.c
test/Sema/warn-missing-variable-declarations.c
test/SemaCXX/warn-missing-variable-declarations.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59402.190966.patch
Type: text/x-patch
Size: 7476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190316/f17174cf/attachment.bin>
More information about the cfe-commits
mailing list