aboutsummaryrefslogtreecommitdiff
path: root/gcc/selftest-run-tests.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-12-06 19:56:11 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-12-06 19:56:11 +0000
commit613bc14fcd3f6b58289aca9a2980cacfc2e75299 (patch)
treeadf0978b4aae44dff2d6b8e753023d32a03d9960 /gcc/selftest-run-tests.c
parent06f9708454a5e644b1fb5ed17a863cd624985e17 (diff)
downloadgcc-613bc14fcd3f6b58289aca9a2980cacfc2e75299.zip
gcc-613bc14fcd3f6b58289aca9a2980cacfc2e75299.tar.gz
gcc-613bc14fcd3f6b58289aca9a2980cacfc2e75299.tar.bz2
Move macro-spellchecking code from "gcc" to new files in c-family
The code for spellchecking macros really belongs in c-family, rather than in gcc/spellcheck-tree.c, so this patch moves it there. gcc/ChangeLog: * Makefile.in (C_COMMON_OBJS): Add c-family/c-spellcheck.o. * spellcheck-tree.c (find_closest_macro_cpp_cb): Move to c-family/c-spellcheck.cc. (best_macro_match::best_macro_match): Likewise. * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>): Move to c-family/c-spellcheck.h. (class best_macro_match): Likewise. gcc/c-family/ChangeLog: * c-spellcheck.cc: New file, taken from macro-handling code in spellcheck-tree.c. * c-spellcheck.h: New file, taken from macro-handling code in spellcheck-tree.h. gcc/c/ChangeLog: * c-decl.c: Include "c-family/c-spellcheck.h". gcc/cp/ChangeLog: * name-lookup.c: Include "c-family/c-spellcheck.h". From-SVN: r255452
Diffstat (limited to 'gcc/selftest-run-tests.c')
0 files changed, 0 insertions, 0 deletions