Re: [PATCH 21/22] Use Levenshtein distance for various misspellings in C frontend

2015-09-11 Thread Manuel López-Ibáñez
On 10/09/15 22:28, David Malcolm wrote: There are a couple of FIXMEs here: * where to call levenshtein_distance_unit_tests Should this be part of make check? Perhaps a small program that is compiled and linked with spellcheck.c? This would be possible if spellcheck.c did not depend on tree.h

Re: [PATCH 21/22] Use Levenshtein distance for various misspellings in C frontend

2015-09-10 Thread Andi Kleen
David Malcolm writes: > + { > + error_at_rich_loc > + (, > + "%qT has no member named %qE; did you mean %qE?", > + type, component, field); > + /* FIXME: error recovery: should we try to keep going, > +

[PATCH 21/22] Use Levenshtein distance for various misspellings in C frontend

2015-09-10 Thread David Malcolm
Screenshot: https://dmalcolm.fedorapeople.org/gcc/2015-09-10/spellcheck.html There are a couple of FIXMEs here: * where to call levenshtein_distance_unit_tests * should we attempt error-recovery in c-typeck.c:build_component_ref gcc/ChangeLog: * Makefile.in (OBJS): Add spellcheck.o.