Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Wuseless-action #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

-Wuseless-action #8

wants to merge 5 commits into from

Commits on Jul 7, 2020

  1. diagnostics: add -Wuseless-action

    * src/complain.h, src/complain.c: Add support for -Wuseless-action.
    akimd committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    a0e3b95 View commit details
    Browse the repository at this point in the history
  2. avoid useless actions in examples and tests

    * tests/glr-regression.at, tests/java.at, tests/torture.at,
    * examples/c/lexcalc/parse.y, examples/c/reccalc/parse.y: here.
    * src/parse-gram.y: Likewise.
    Style changes.
    akimd committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    defaa97 View commit details
    Browse the repository at this point in the history
  3. regen

    akimd committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    f28c1e3 View commit details
    Browse the repository at this point in the history
  4. diagnostics: report useless actions

    In order for the useless chain productions to work properly, there
    should not be actions that make explicit the default behavior.
    
    * src/scan-code.l (strspacecmp, useless_default_action): New.
    (translate_action): Report useless actions.
    * src/reader.c (grammar_rule_check_and_complete): Don't trigger this
    warning when generating explicit actions for C++.
    * tests/actions.at (Useless default actions): New.
    akimd committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    f7022e0 View commit details
    Browse the repository at this point in the history
  5. doc: document -Wuseless-action

    * doc/bison.texi, src/getargs.c, NEWS: here.
    akimd committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    7eca845 View commit details
    Browse the repository at this point in the history