Files
bison/tests
Akim Demaille 0b585c49ae diagnostics: display suggested update after the caret-info
This commit adds the suggestion in green, on the line below the
caret-and-tildes.

    foo.y:1.1-14: warning: deprecated directive: '%error-verbose', use '%define parse.error verbose' [-Wdeprecated]
        1 | %error-verbose
          | ^~~~~~~~~~~~~~
          | %define parse.error verbose

The current approach, with location_caret_suggestion, is fragile:
there's a protocol of calls to the complain functions which is strict.
We should rather have a richer structure describing the diagnostics,
including with submessages such as the suggestions, passed in the end
to the routines in charge of formatting and printing them.

* src/location.h, src/location.c (location_caret_suggestion): New.
* src/complain.c (deprecated_directive): Use it.
* tests/diagnostics.at, tests/input.at: Adjust expectations.
2019-10-06 08:07:57 +02:00
..
2019-02-21 06:46:07 +01:00
2019-10-02 17:11:33 -07:00
2019-09-06 17:27:55 +02:00
2019-09-08 12:02:30 +02:00
2019-08-29 07:26:33 -05:00
2019-08-09 06:40:38 -05:00
2019-04-24 13:21:24 +02:00
2019-04-25 20:20:59 +02:00
2019-06-19 19:15:31 +02:00
2019-09-14 10:09:08 +02:00
2019-10-05 23:00:05 +02:00
2019-04-23 18:29:10 +02:00
2019-02-21 17:46:11 +01:00
2019-04-23 18:29:10 +02:00
2019-02-09 08:23:50 +01:00
2019-05-29 08:38:16 +02:00
2019-09-14 09:55:17 +02:00
2019-10-04 06:58:44 +02:00
2019-02-21 17:46:11 +01:00