re PR c/71858 (Surprising suggestions for misspellings)
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Jul 2016 10:40:39 +0000 (12:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Jul 2016 10:40:39 +0000 (12:40 +0200)
commitddbbcb1981b4f7c8ee18f4aecaf84c2cb2d98e2e
tree56e0c00028a6dfb864fa929c7d4929c7c0a6b999
parent29eb509ccb9acd5aac604e6796e376bc09c4626d
re PR c/71858 (Surprising suggestions for misspellings)

PR c/71858
* c-common.h (enum lookup_name_fuzzy_kind): Add
FUZZY_LOOKUP_FUNCTION_NAME.

* c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
instead of FUZZY_LOOKUP_NAME.
(lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.

* gcc.dg/spellcheck-identifiers-3.c: New test.

From-SVN: r238369
gcc/c-family/ChangeLog
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/spellcheck-identifiers-3.c [new file with mode: 0644]