]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Note macro locations
authorNathan Sidwell <nathan@acm.org>
Mon, 27 Jun 2022 14:51:12 +0000 (07:51 -0700)
committerNathan Sidwell <nathan@acm.org>
Thu, 30 Jun 2022 11:52:40 +0000 (04:52 -0700)
commit47e36785cd2ba35a577b0678a2ac185288eb9e52
tree4949582e913de3f384752784f4c855426709338f
parent00193676a5a3e7e50e1fa6646bb5abb5a7b2acbb
c++: Note macro locations

In order to prune ordinary locations, we need to note the locations of
macros we'll be writing out.  This rearanges the macro processing to achieve
that.  Also drop an unneeded parameter from macro reading & writing.

Fix some it's/its errors.

gcc/cp/
* module.cc (module_state::write_define): Drop located param.
(module_state::read_define): Likewise.
(module_state::prepare_macros): New, broken out of ...
(module_state::write_macros): ... here.  Adjust.
(module_state::write_begin): Adjust.
gcc/testsuite/
* g++.dg/modules/inext-1.H: Check include-next happened.
gcc/cp/module.cc
gcc/testsuite/g++.dg/modules/inext-1.H