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:
Akim Demaille
2019-04-27 14:33:26 +02:00
parent 8f5d475079
commit 91b8f3f171
3 changed files with 44 additions and 24 deletions

View File

@@ -104,6 +104,7 @@ enum trace
trace_muscles = 1 << 11, /**< M4 definitions of the muscles. */
trace_ielr = 1 << 12, /**< IELR conversion. */
trace_closure = 1 << 13, /**< Input/output of closure(). */
trace_locations = 1 << 14, /**< Full display of locations. */
trace_all = ~0 /**< All of the above. */
};
/** What debug items bison displays during its run. */