Re: [PATCH 4/5] c-family: clean up the data tables in c-format.c

2018-07-31 Thread Marek Polacek
On Tue, Jul 31, 2018 at 02:56:29PM +0200, Richard Biener wrote: > On Fri, Jul 27, 2018 at 11:48 PM David Malcolm wrote: > > > > The format_char_info tables in c-format.c for our own formats contain > > a lot of repetition. > > > > This patch adds a macro to express the conversion specifiers

Re: [PATCH 4/5] c-family: clean up the data tables in c-format.c

2018-07-31 Thread Richard Biener
On Fri, Jul 27, 2018 at 11:48 PM David Malcolm wrote: > > The format_char_info tables in c-format.c for our own formats contain > a lot of repetition. > > This patch adds a macro to express the conversion specifiers implemented > within pp_format, making it clearer which are custom ones added by

[PATCH 4/5] c-family: clean up the data tables in c-format.c

2018-07-27 Thread David Malcolm
The format_char_info tables in c-format.c for our own formats contain a lot of repetition. This patch adds a macro to express the conversion specifiers implemented within pp_format, making it clearer which are custom ones added by the various diagnostic_format_decoder callbacks. Doing so