c++: Module-specific error and tree dumping
authorNathan Sidwell <nathan@acm.org>
Wed, 9 Dec 2020 20:18:06 +0000 (12:18 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 10 Dec 2020 13:21:52 +0000 (05:21 -0800)
commit8c60696b699e0b22cc12ae628473f0a23f90c82e
tree3f67ba38dcace1dc882fc9768a287feab2399847
parent79c1b9fb44ce9abd0e2f6642b65684b9721233ee
c++: Module-specific error and tree dumping

With modules, we need the ability to name 'foos' in different modules.
The idiom for that is a trailing '@modulename' suffix.  This adds that
to the error printing routines.  I also augment the tree dumping
machinery to show module-specific metadata.

gcc/cp/
* error.c (dump_module_suffix): New.
(dump_aggr_type, dump_simple_decl, dump_function_name): Call it.
* ptree.c (cxx_print_decl): Print module information.
* module.cc (module_name, get_importing_module): Stubs.
gcc/cp/error.c
gcc/cp/module.cc
gcc/cp/ptree.c