Re: [committed] diagnostics: add labeling of source ranges

2018-08-15 Thread Eric Gallager
On 8/15/18, David Malcolm wrote: > This patch adds the ability to label source ranges within a rich_location, > to be printed by diagnostic_show_locus. > > For example: > > pr69554-1.c:11:18: error: invalid operands to binary + (have 'const char *' > and 'const char *') > 11 | return (p + 1) + (

[committed] diagnostics: add labeling of source ranges

2018-08-15 Thread David Malcolm
This patch adds the ability to label source ranges within a rich_location, to be printed by diagnostic_show_locus. For example: pr69554-1.c:11:18: error: invalid operands to binary + (have 'const char *' and 'const char *') 11 | return (p + 1) + (q + 1); | ~~~ ^ ~~~ |