summaryrefslogtreecommitdiff
path: root/tests/regression.at
diff options
context:
space:
mode:
authorVictor Morales Cayuela <victor.morales_cayuela@nokia-sbell.com>2020-02-14 18:41:55 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-15 08:28:40 +0100
commite09a72eeb0429ee1eee9b0bdc986ab046d8d2532 (patch)
tree4e06ea4a32f0621eda21e1570fb3138d496c309c /tests/regression.at
parenta09d0ae4d177592bc132e4a3733bf0c7a6ddeb6a (diff)
downloadbison-e09a72eeb0429ee1eee9b0bdc986ab046d8d2532.tar.gz
diagnostics: modernize the display of submessages
Since Bison 2.7, output was indented four spaces for explanatory statements. For example: input.y:2.7-13: error: %type redeclaration for exp input.y:1.7-11: previous declaration Since the introduction of caret-diagnostics, it became less clear. Remove the indentation and display submessages as in GCC: input.y:2.7-13: error: %type redeclaration for exp 2 | %type <float> exp | ^~~~~~~ input.y:1.7-11: note: previous declaration 1 | %type <int> exp | ^~~~~ * src/complain.h (SUB_INDENT): Remove. (warnings): Add "note" to the enum. * src/complain.h, src/complain.c (complain_indent): Replace by... (subcomplain): this. Adjust all dependencies. * tests/actions.at, tests/diagnostics.at, tests/glr-regression.at, * tests/input.at, tests/named-refs.at, tests/regression.at: Adjust expectations.
Diffstat (limited to 'tests/regression.at')
-rw-r--r--tests/regression.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regression.at b/tests/regression.at
index d7d3e0de..cd79b507 100644
--- a/tests/regression.at
+++ b/tests/regression.at
@@ -400,7 +400,7 @@ AT_BISON_CHECK([-fcaret -o input.c input.y], [[0]], [[]],
[[input.y:22.8-14: warning: symbol SPECIAL redeclared [-Wother]
22 | %token SPECIAL "\\\'\?\"\a\b\f\n\r\t\v\001\201\x001\x000081??!"
| ^~~~~~~
-input.y:21.8-14: previous declaration
+input.y:21.8-14: note: previous declaration
21 | %token SPECIAL "\\\'\?\"\a\b\f\n\r\t\v\001\201\x001\x000081??!"
| ^~~~~~~
input.y:22.16-63: warning: symbol "\\'?\"\a\b\f\n\r\t\v\001\201\001\201??!" used more than once as a literal string [-Wother]