Re: PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-18 Thread Joseph S. Myers
On Mon, 18 Nov 2013, Basile Starynkevitch wrote: > On Mon, 2013-11-18 at 13:17 +, Joseph S. Myers wrote: > > On Sun, 17 Nov 2013, Basile Starynkevitch wrote: > > > > > What would be the good way to add such a plugin event to GCC 4.9? > > > > See the cpp_callbacks structure, used to make diag

Re: PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-18 Thread Basile Starynkevitch
On Mon, 2013-11-18 at 13:17 +, Joseph S. Myers wrote: > On Sun, 17 Nov 2013, Basile Starynkevitch wrote: > > > What would be the good way to add such a plugin event to GCC 4.9? > > See the cpp_callbacks structure, used to make diagnostics go through GCC's > diagnostics machinery, for example

Re: PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-18 Thread Joseph S. Myers
On Sun, 17 Nov 2013, Basile Starynkevitch wrote: > What would be the good way to add such a plugin event to GCC 4.9? See the cpp_callbacks structure, used to make diagnostics go through GCC's diagnostics machinery, for example. I'm not clear why the existing callbacks (in particular the file_c

PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-17 Thread Basile Starynkevitch
Hello All, I strongly believe that plugins should be able to be notified of included headers. Notice that end-users already can be notified with the -H option of gcc. This is useful e.g. for plugins which are interfacing to some IDE (like Eclispe, Geany, ...), because the editor really wants to k