[PATCH] D59402: Fix-it hints for -Wmissing-{prototypes,variable-declarations}
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 14:14:33 PDT 2019
aaronpuchert updated this revision to Diff 202479.
aaronpuchert added a comment.
This revision is now accepted and ready to land.
Show note suggesting to add `static`, move fix-it to note for functions, remove fix-it for variables. Show note even for `extern` function definitions when we can't build a proper fix-it.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59402/new/
https://reviews.llvm.org/D59402
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/Sema/warn-missing-prototypes.c
test/Sema/warn-missing-variable-declarations.c
test/SemaCXX/warn-missing-prototypes.cpp
test/SemaCXX/warn-missing-variable-declarations.cpp
test/SemaOpenCL/warn-missing-prototypes.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59402.202479.patch
Type: text/x-patch
Size: 12858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190531/8907b713/attachment-0001.bin>
More information about the cfe-commits
mailing list