diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-27 01:04:25 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-01 15:06:12 +0200 |
| commit | 573953f358dcb77308532d8e2020bf045213acc6 (patch) | |
| tree | 953fb9f9c5c135bbeeb6edc0fb6b99d828af8313 /validation/preprocessor | |
| parent | f88da50b475e3e5efdccfab1375ff6af6ae2b9ec (diff) | |
| download | sparse-dev-573953f358dcb77308532d8e2020bf045213acc6.tar.gz | |
give a position to end-of-input
If an error occurs at the end of the input, for example because
a missing terminating ';' or '}', the error message is like:
builtin:0:0: error: ...
IOW, the stream name & position is not displayed because the
because the current token is eof_token_entry which has no position.
This can be confusing and for sure doesn't point where the error is.
Fix this by giving to eof_token_entry the end-of-stream position.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/preprocessor')
0 files changed, 0 insertions, 0 deletions
