[PATCH] D32170: Add a FixItHint for -Wmissing-prototypes to insert 'static '.
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 18 09:17:39 PDT 2017
alexfh created this revision.
Missing 'static' on functions that are intended to be local to a translation
unit seems to be the most common cause of -Wmissing-prototypes warnings, so
suggesting a fix seems to be convenient and useful.
https://reviews.llvm.org/D32170
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/warn-missing-prototypes.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32170.95587.patch
Type: text/x-patch
Size: 5931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170418/07ddd788/attachment-0001.bin>
More information about the cfe-commits
mailing list