[cfe-commits] [PATCH] Remove unused diagnostics
Dmitri Gribenko
gribozavr at gmail.com
Mon Feb 13 09:40:38 PST 2012
Hi,
The first attached patch removes unused diagnostics from
include/clang/Basic/Diagnostic*.td files.
The only unused diagnostic I left was err_expected_lsquare because it
fits nicely within a list in an exhaustive list in
DiagnosticParseKinds.td.
The second patch adds an utils/find-unused-diagnostics.sh script to
find such diagnostics automatically.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-unused-diagnostics-v1.patch
Type: text/x-diff
Size: 35085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120213/ef17c8a6/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-unused-diagnostics-tool-v1.patch
Type: text/x-diff
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120213/ef17c8a6/attachment-0001.patch>
More information about the cfe-commits
mailing list