mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
errors: indent "symbol redeclaration" context
This is the continuation of the work on the readability of errors context. For example, what used to be: input.y:5.10-24: %printer redeclaration for <field2> input.y:3.11-25: previous declaration is now: input.y:5.10-24: %printer redeclaration for <field2> input.y:3.11-25: previous declaration * NEWS: Document this change. * src/symtab.c (symbol_redeclaration, semantic_type_redeclaration, user_token_number_redeclaration, default_tagged_destructor_set, default_tagless_destructor_set, default_tagged_printer_set, default_tagless_printer_set): Use complain_at_indent to output with increased indentation level. * tests/input.at: Apply this change. Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
committed by
Akim Demaille
parent
24d96dd3eb
commit
cbaea0106d
@@ -206,29 +206,29 @@ start: ;
|
||||
|
||||
AT_BISON_CHECK([input.y], [1], [],
|
||||
[[input.y:1.13-29: redeclaration for default tagged %destructor
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:2.10-24: redeclaration for default tagged %printer
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:4.13-29: redeclaration for default tagged %destructor
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:5.10-24: redeclaration for default tagged %printer
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:7.13-29: redeclaration for default tagless %destructor
|
||||
input.y:7.13-29: previous declaration
|
||||
input.y:7.13-29: previous declaration
|
||||
input.y:8.10-24: redeclaration for default tagless %printer
|
||||
input.y:8.10-24: previous declaration
|
||||
input.y:8.10-24: previous declaration
|
||||
input.y:10.13-29: redeclaration for default tagless %destructor
|
||||
input.y:7.13-29: previous declaration
|
||||
input.y:7.13-29: previous declaration
|
||||
input.y:11.10-24: redeclaration for default tagless %printer
|
||||
input.y:8.10-24: previous declaration
|
||||
input.y:8.10-24: previous declaration
|
||||
input.y:17.13-29: redeclaration for default tagged %destructor
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:18.10-24: redeclaration for default tagged %printer
|
||||
input.y:5.10-24: previous declaration
|
||||
input.y:5.10-24: previous declaration
|
||||
input.y:20.13-29: redeclaration for default tagless %destructor
|
||||
input.y:10.13-29: previous declaration
|
||||
input.y:10.13-29: previous declaration
|
||||
input.y:21.10-24: redeclaration for default tagless %printer
|
||||
input.y:11.10-24: previous declaration
|
||||
input.y:11.10-24: previous declaration
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -257,21 +257,21 @@ start: ;
|
||||
|
||||
AT_BISON_CHECK([input.y], [1], [],
|
||||
[[input.y:4.13-29: %destructor redeclaration for <field1>
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:4.13-29: %destructor redeclaration for <field1>
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:5.10-24: %printer redeclaration for <field2>
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:5.10-24: %printer redeclaration for <field2>
|
||||
input.y:5.10-24: previous declaration
|
||||
input.y:5.10-24: previous declaration
|
||||
input.y:11.13-29: %destructor redeclaration for <field1>
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:4.13-29: previous declaration
|
||||
input.y:11.13-29: %destructor redeclaration for <field2>
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:1.13-29: previous declaration
|
||||
input.y:12.10-24: %printer redeclaration for <field1>
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:2.10-24: previous declaration
|
||||
input.y:12.10-24: %printer redeclaration for <field2>
|
||||
input.y:5.10-24: previous declaration
|
||||
input.y:5.10-24: previous declaration
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -369,13 +369,13 @@ exp: foo;
|
||||
|
||||
AT_BISON_CHECK([input.y], [1], [],
|
||||
[[input.y:8.7-11: %type redeclaration for foo
|
||||
input.y:3.7-11: previous declaration
|
||||
input.y:3.7-11: previous declaration
|
||||
input.y:10.13-17: %destructor redeclaration for foo
|
||||
input.y:5.13-17: previous declaration
|
||||
input.y:5.13-17: previous declaration
|
||||
input.y:9.10-14: %printer redeclaration for foo
|
||||
input.y:4.10-14: previous declaration
|
||||
input.y:4.10-14: previous declaration
|
||||
input.y:11.1-5: %left redeclaration for foo
|
||||
input.y:6.1-5: previous declaration
|
||||
input.y:6.1-5: previous declaration
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -693,7 +693,7 @@ start: DECIMAL_1 HEXADECIMAL_2;
|
||||
|
||||
AT_BISON_CHECK([redecl.y], [1], [],
|
||||
[[redecl.y:10.10-22: user token number 11259375 redeclaration for HEXADECIMAL_1
|
||||
redecl.y:9.8-16: previous declaration for DECIMAL_1
|
||||
redecl.y:9.8-16: previous declaration for DECIMAL_1
|
||||
redecl.y:12.10-18: user token number 16702650 redeclaration for DECIMAL_2
|
||||
redecl.y:11.10-22: previous declaration for HEXADECIMAL_2
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user