mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 13:53:03 +00:00
diagnostics: show locations in full when debugging
This is meant for developers, not end users, that's why I attached it to --trace. * src/getargs.h, src/getargs.c (trace_locations): New. * src/location.c (location_print): Use it.
This commit is contained in:
@@ -185,6 +185,7 @@ ARGMATCH_VERIFY (report_args, report_types);
|
||||
static const char * const trace_args[] =
|
||||
{
|
||||
"none - no traces",
|
||||
"locations - full display of the locations",
|
||||
"scan - grammar scanner traces",
|
||||
"parse - grammar parser traces",
|
||||
"automaton - construction of the automaton",
|
||||
@@ -206,6 +207,7 @@ static const char * const trace_args[] =
|
||||
static const int trace_types[] =
|
||||
{
|
||||
trace_none,
|
||||
trace_locations,
|
||||
trace_scan,
|
||||
trace_parse,
|
||||
trace_automaton,
|
||||
|
||||
Reference in New Issue
Block a user