r237865 - in /trunk/gcc: ChangeLog opts.c param...
dmalcolm@gcc.gnu.org
dmalcolm@gcc.gnu.org
Thu Jun 30 00:05:00 GMT 2016
Author: dmalcolm
Date: Thu Jun 30 00:05:39 2016
New Revision: 237865
URL: https://gcc.gnu.org/viewcvs?rev=237865&root=gcc&view=rev
Log:
Offer suggestions for misspelled --param names.
gcc/ChangeLog:
* opts.c (handle_param): Use find_param_fuzzy to offer suggestions
for misspelled param names.
* params.c: Include spellcheck.h.
(find_param_fuzzy): New function.
* params.h (find_param_fuzzy): New prototype.
* spellcheck.c (struct edit_distance_traits<const char *>): Move
to...
* spellcheck.h (struct edit_distance_traits<const char *>):
...here.
gcc/testsuite/ChangeLog:
* gcc.dg/spellcheck-params.c: New testcase.
* gcc.dg/spellcheck-params-2.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/spellcheck-params-2.c
trunk/gcc/testsuite/gcc.dg/spellcheck-params.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/opts.c
trunk/gcc/params.c
trunk/gcc/params.h
trunk/gcc/spellcheck.c
trunk/gcc/spellcheck.h
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list