From 613bc14fcd3f6b58289aca9a2980cacfc2e75299 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 6 Dec 2017 19:56:11 +0000 Subject: 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): 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 --- gcc/c/c-decl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/c/c-decl.c') diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 56c63d8..d7dad1a 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -56,6 +56,7 @@ along with GCC; see the file COPYING3. If not see #include "asan.h" #include "c-family/name-hint.h" #include "c-family/known-headers.h" +#include "c-family/c-spellcheck.h" /* In grokdeclarator, distinguish syntactic contexts of declarators. */ enum decl_context -- cgit v1.1