Arnaud Charlet wrote:
I suppose the idea is to emit each used macro a single time only, the
code seems to confirm this.
Makes sense indeed (and at least matches what the code does).
Arnaud> so would the addition of a new callback (e.g.
Arnaud> void (*used) (cpp_reader *, unsigned int, cpp_hashnode *);
Arnaud> ) be acceptable in principle? If so, I'll post a formal patch on
Arnaud> gcc-patches@
Yes, this would be fine.
Thanks, I'll prepare such patch then.
May I respectfully suggest to make that a plugin callback?
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***