]> granicus.if.org Git - re2c/commit
Added option --location-format <gnu | msvc> (default is gnu).
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 13 Feb 2019 13:50:00 +0000 (13:50 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 13 Feb 2019 13:50:00 +0000 (13:50 +0000)
commit7b96502e16f881ab119ba289f892f87545831f30
treef07282131cdf6148e0ea6e13d0a522f14358e983
parentc52aa1bd5b8071810996e8b6bb9e2841e8654892
Added option --location-format <gnu | msvc> (default is gnu).

This option controls the formatting of locations in error messages
and warnings.

With --location-format gnu:

    filename:line:column: ...

With --location-format msvc:

    filename(line,column): ...
22 files changed:
re2c/bootstrap/src/options/parse_opts.cc
re2c/src/msg/location.h
re2c/src/msg/msg.cc
re2c/src/msg/msg.h
re2c/src/options/parse_opts.re
re2c/test/messages/msg_00.i--location-format(gnu).c [new file with mode: 0644]
re2c/test/messages/msg_00.i--location-format(gnu).re [new file with mode: 0644]
re2c/test/messages/msg_00.i--location-format(msvc).c [new file with mode: 0644]
re2c/test/messages/msg_00.i--location-format(msvc).re [new file with mode: 0644]
re2c/test/messages/msg_01.i--location-format(gnu).c [new file with mode: 0644]
re2c/test/messages/msg_01.i--location-format(gnu).re [new file with mode: 0644]
re2c/test/messages/msg_01.i--location-format(msvc).c [new file with mode: 0644]
re2c/test/messages/msg_01.i--location-format(msvc).re [new file with mode: 0644]
re2c/test/messages/msg_02.i--location-format(gnu).c [new file with mode: 0644]
re2c/test/messages/msg_02.i--location-format(gnu).re [new file with mode: 0644]
re2c/test/messages/msg_02.i--location-format(msvc).c [new file with mode: 0644]
re2c/test/messages/msg_02.i--location-format(msvc).re [new file with mode: 0644]
re2c/test/messages/msg_03.i--location-format(gnu).c [new file with mode: 0644]
re2c/test/messages/msg_03.i--location-format(gnu).re [new file with mode: 0644]
re2c/test/messages/msg_03.i--location-format(msvc).c [new file with mode: 0644]
re2c/test/messages/msg_03.i--location-format(msvc).re [new file with mode: 0644]
re2c/test/messages/nested/msg_02.re.inc [new file with mode: 0644]