diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-02-13 17:29:42 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-02-14 15:00:51 +0100 |
commit | c017f88fdedf409dc63ca63bab0b045ad23d0719 (patch) | |
tree | d07b65ef3ab037bb8e1b450d1570fde95df3ebff /TODO | |
parent | 219458e22f163ede84daa71dfa98bab82a766954 (diff) | |
download | bison-c017f88fdedf409dc63ca63bab0b045ad23d0719.tar.gz |
options: don't accept "error=" for -f and -r
* src/getargs.c (warning_argmatch, warnings_argmatch, WARNINGS_ARGMATCH):
New.
Use them for -W/--warning.
They are copied from...
(flag_argmatch, flags_argmatch, FLAGS_ARGMATCH): these.
Simplify by removing the support for "error".
* tests/input.at (Invalid options): New.
* TODO (Laxism in Bison invocation arguments): Remove.
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -1,27 +1,4 @@ * Short term -** Laxism in Bison invocation arguments: -The flag_argmatch functions were meant to be generic. The introduction of --Werror= in generic code is a bit troublesome, and generates weird -behaviour. Because seeing "error=" causes Bison to match the subsequent -categories with a generic procedure, but on a very specific variable, the -following commands are legal, and equivalent: - -$ bison -Werror=yacc # OK -$ bison --warnings=error=yacc # err, looks very weird? -$ bison -rerror=itemsets # this value of 'report' enum has a value - # of '1 << 1', just like Wyacc -$ bison --report=error=itemsets # (same) -$ bison -ferror=caret # (same) -$ bison --feature=error=caret # (same) - -Basically, writing -rerror={THINGS} or -ferror={FEATURE} is not prohibited, -and results in UB. - -I don't think there is any reason for the user to expect anything out of -these options (this implementation-driven behavior is not documented of -course, as it isn't exactly a feature), so this bug isn't critical but -should be addressed some day nonetheless. - ** Graphviz display code thoughts The code for the --graph option is over two files: print_graph, and graphviz. This is because Bison used to also produce VCG graphs, but since |