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

Deprecate non-prefixed letters in warning specifications #10207

Merged
merged 5 commits into from
Mar 16, 2021

Commits on Mar 15, 2021

  1. stop using single letter in warning settings

    - Replace -w A with -w +A in various makefiles and tests.
    - Replace -w a with -w -a in tests.
    - Replace -w Ae with -w +A -w -fragile-matching
    Octachron committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    a7f8040 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0eea1b View commit details
    Browse the repository at this point in the history
  3. compiler interface: deprecate single letter warning

    For instance, -w "Ae" now raises an ocaml_deprecated_cli alert.
    
    Setting warning with prefixed letters (-w "+a-e") is clearer and
    coexists better with named warnings (-w +fragile-match).
    
    In particular, this new alert should warn on spelling mistakes like
    -w +fragile-math
    Octachron committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    7cb5925 View commit details
    Browse the repository at this point in the history
  4. warning deprecation: full normalization of parsed tokens

    The fix part of the deprecated message now provides a normalized
    version of the parsed tokens.
    Octachron committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    2a27200 View commit details
    Browse the repository at this point in the history
  5. Changes

    Octachron committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    619d068 View commit details
    Browse the repository at this point in the history