c++: modularize spelling suggestions
authorNathan Sidwell <nathan@acm.org>
Thu, 10 Dec 2020 16:28:31 +0000 (08:28 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 10 Dec 2020 16:30:58 +0000 (08:30 -0800)
commitafc14c8d0a9e7af13698a7eec84226a3cc4b0e67
tree30c63a5c82a77f4bc8b7101920d7f60f576c0624
parentb46dd03fe94e2428cbcdbfc4d081d89ed604803a
c++: modularize spelling suggestions

This augments the spelling suggestion code to understand about visible
imported modules.  Simply consider each visible binding in the
binding_vector, until we find one that has something of interest.

gcc/cp/
* name-lookup.c: Include bitmap.h.
(enum binding_slots): New.
(maybe_add_fuzzy_binding): Return bool true if found.
(consider_binding_level): Add module support.
* module.cc (get_import_bitmap): Stub.
gcc/cp/module.cc
gcc/cp/name-lookup.c