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

Per type warn 4 #1071

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from
Open

Per type warn 4 #1071

wants to merge 6 commits into from

Commits on Apr 28, 2017

  1. enable per-type warning 4

    vprevosto committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    449654d View commit details
    Browse the repository at this point in the history
  2. fix long-standing bug with warning 4 and recursive module

    The same issue that was reported for typecore.ml in PR#6394 did occur in
    fragile pattern-matching detection code. Fix is similar: accept the fact that
    in presence of recursive module some incoherence may happen.
    vprevosto committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    889053d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    48f19b2 View commit details
    Browse the repository at this point in the history
  4. Refine warnings' scope

    Implements Octachron's proposal in PR#7310: warnings can now be in 4
    states:
    
    - Always: they are always active
    - Implicit: they are active, but can be deactivated through external definitions
    - Explicit: they are inactive, but can activated through external definitions
    - Never: they are always inactive.
    
    `warn-error` keeps its semantics: if the warning is
    triggered (regardless of the activation state), a compilation error
    will follow.
    
    Warning modifiers in the warning string are now the following
    
    - `+` put the corresponding warnings in Implicit state
    - `-` in Explicit state
    - `++` in Always state
    - `--` in Never state
    - `@` in Implicit state and triggers an error
    - `@@` in Always state and triggers an error.
    
    as of now, only warning 4 takes advantage of the four states. For any
    other warning, `Always` and `Implicit` merely indicate that the
    warning is active, and `Never` and `Explicit` that it is inactive.
    vprevosto committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    25a131a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6584892 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2017

  1. Update after Github's comments

    - fixes indentation and spacing
    - small code refactoring
    - renaming of local variables
    vprevosto committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    2ba33a8 View commit details
    Browse the repository at this point in the history