Re: Will GCC-6.0 Warn On Spelling Mistakes In Comments And Function Names?



Erik de Castro Lopo wrote:
Jan Panteltje wrote:

And will it use US or UK spelling?

unsigned char *color_filter(....)
/* this vunction returns ... */

gcc test.c:

WARN 'line 1: color_filter is spelled colour_filter
ABORT 'line 3: EROR 'vunction' spelling unknown.


Ok, but what about this:

unsigned char *color_filter() ;

/* 100 lines of code */

unsigned char *ptr = colour_filter () ;


WARN 'line 203': identifier 'colour_filter' not found, using closest
match 'color_filter' instead.


This would be useful.

Erik

gcc-6.0 will add the `--dwim' command line option.
gcc-6.1 will add the `--dwishm' command line option

But probably not. ;-)

--ag

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]
.