]> git.saurik.com Git - bison.git/commit - src/complain.c
-Wempty-rule: diagnose empty rules without %empty
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 9 Feb 2013 17:26:38 +0000 (18:26 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 18 Feb 2013 09:01:27 +0000 (10:01 +0100)
commitf68a49ed4942714616e692f0fa2a8315368bae3b
tree07a7378c34ee048096e873c5470ae6dcd0c0d27d
parent684083f0650eb1cdabc4ca2f5a15a46caf00985a
-Wempty-rule: diagnose empty rules without %empty

* src/complain.h, src/complain.c (warning_empty_rule, Wempty_rule):
New warning category.
(warnings_args, warnings_types): Adjust.
* src/reader.c (grammar_rule_check): Check the empty rules are
flagged by %empty.
* tests/actions.at (Implicitly empty rule): New.
* tests/existing.at: Add expected warnings.
src/complain.c
src/complain.h
src/getargs.c
src/reader.c
tests/actions.at
tests/existing.at