Files
bison/src
Akim Demaille 235892350f error: use better locations for unused midrule values
On

  %%
  exp: {;} {$$;} { $$ = $1; }

instead of reporting (with -fcaret -Wmidrule-value)

  midrule.y:2.6-8: warning: unset value: $$ [-Wmidrule-values]
   exp: {;} {$$;} { $$ = $1; }
        ^^^
  midrule.y:2.6-27: warning: unused value: $2 [-Wmidrule-values]
   exp: {;} {$$;} { $$ = $1; }
        ^^^^^^^^^^^^^^^^^^^^^^

report

  midrule.y:2.6-8: warning: unset value: $$
   exp: {;} {$$;} { $$ = $1; }
        ^^^
  midrule.y:2.10-14: warning: unused value: $2
   exp: {;} {$$;} { $$ = $1; }
            ^^^^^

* src/reader.c (grammar_rule_check): When warning about the value of a
midrule action, use the location of the midrule action instead of the
location of the rule.
the location of the part of the rule.
* tests/actions.at (Default %printer and %destructor for mid-rule values):
Adjust expectations
* tests/input.at (Unused values with default %destructor): Ditto.
(AT_CHECK_UNUSED_VALUES): Ditto.
And use -fcaret.
2012-12-09 16:24:20 +01:00
..
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-02-19 10:21:06 +01:00
2012-01-13 11:48:14 +01:00
2012-12-05 13:46:01 +01:00
2012-07-31 10:50:06 +02:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-12-05 15:39:52 +01:00
2012-12-05 12:10:51 +01:00
2012-12-05 13:46:01 +01:00
2012-01-13 11:48:14 +01:00
2012-12-06 10:53:30 +01:00
2012-10-11 15:59:55 +02:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-02-19 10:21:06 +01:00
2012-01-13 11:48:14 +01:00
2012-12-07 12:02:00 +01:00
2012-12-05 13:46:01 +01:00
2012-02-19 10:21:06 +01:00
2012-01-13 11:48:14 +01:00
2012-12-05 13:46:01 +01:00
2012-10-09 15:59:18 +02:00
2012-07-31 10:50:06 +02:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-10-26 16:33:20 +02:00
2012-01-13 11:48:14 +01:00
2012-11-08 09:22:58 +01:00
2012-11-08 09:22:58 +01:00
2012-10-26 14:25:11 +02:00
2012-11-12 10:25:13 +00:00
2012-01-13 11:48:14 +01:00
2012-10-26 14:25:11 +02:00
2012-02-19 10:21:06 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2006-08-10 04:53:04 +00:00
2012-12-03 15:59:57 +01:00
2006-08-10 04:53:04 +00:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-02-19 10:21:06 +01:00
2012-01-13 11:48:14 +01:00
2012-01-13 11:48:14 +01:00
2012-10-22 12:17:17 +02:00