[commit: ghc] wip/warning-origins: Print which warning-flag controls an emitted warning. (736c2fe)

git at git.haskell.org git at git.haskell.org
Thu Feb 25 16:56:20 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/warning-origins
Link       : http://ghc.haskell.org/trac/ghc/changeset/736c2fe705f083fe42bd5fe9318f0636b6b2fca6/ghc

>---------------------------------------------------------------

commit 736c2fe705f083fe42bd5fe9318f0636b6b2fca6
Author: Michael Walker <mike at barrucadu.co.uk>
Date:   Thu Feb 25 17:34:07 2016 +0100

    Print which warning-flag controls an emitted warning.
    
    Both gcc and clang tell which warning flag a reported warning can be
    controlled with, this patch makes ghc do the same. More generally, this
    allows for annotated compiler output, where an optional annotation is
    displayed in brackets after the severity.
    
    Display which group enables a warning.
    
    Add flag to show which group a warning belongs to
    
    ``-f(no-)show-warning-groups``, used to show/hide the group an emitted
    warning belongs to. On by default.
    
    Fix compilation error in ghc-api test
    
    Reviewers: goldfire, hvr, quchen, austin, bgamari
    
    Reviewed By: quchen, bgamari
    
    Subscribers: goldfire, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1943
    
    GHC Trac Issues: #10752


>---------------------------------------------------------------

736c2fe705f083fe42bd5fe9318f0636b6b2fca6
 compiler/coreSyn/CoreLint.hs              |  7 ++-
 compiler/deSugar/Coverage.hs              |  2 +-
 compiler/ghci/Debugger.hs                 |  2 +-
 compiler/ghci/Linker.hs                   | 11 +++-
 compiler/iface/BinIface.hs                |  9 ++-
 compiler/iface/LoadIface.hs               |  2 +-
 compiler/main/CodeOutput.hs               |  8 ++-
 compiler/main/DriverPipeline.hs           |  4 +-
 compiler/main/DynFlags.hs                 | 93 ++++++++++++++++++++++++++++---
 compiler/main/ErrUtils.hs                 | 49 +++++++++++-----
 compiler/main/ErrUtils.hs-boot            |  1 +
 compiler/main/GhcMake.hs                  | 12 ++--
 compiler/main/SysTools.hs                 |  4 +-
 compiler/main/TidyPgm.hs                  |  2 +-
 compiler/rename/RnBinds.hs                |  4 +-
 compiler/rename/RnEnv.hs                  | 21 ++++---
 compiler/rename/RnNames.hs                | 81 ++++++++++++++++-----------
 compiler/rename/RnSource.hs               | 42 +++++++++-----
 compiler/rename/RnTypes.hs                |  2 +-
 compiler/simplCore/CoreMonad.hs           |  2 +-
 compiler/simplCore/SimplCore.hs           |  3 +-
 compiler/simplStg/SimplStg.hs             |  2 +-
 compiler/typecheck/Inst.hs                |  4 +-
 compiler/typecheck/TcAnnotations.hs       |  4 +-
 compiler/typecheck/TcBinds.hs             | 21 ++++---
 compiler/typecheck/TcClassDcl.hs          |  7 ++-
 compiler/typecheck/TcDeriv.hs             |  5 +-
 compiler/typecheck/TcErrors.hs            | 19 ++++---
 compiler/typecheck/TcExpr.hs              |  3 +-
 compiler/typecheck/TcForeign.hs           |  6 +-
 compiler/typecheck/TcInstDcls.hs          |  4 +-
 compiler/typecheck/TcMatches.hs           |  4 +-
 compiler/typecheck/TcPat.hs               |  3 +-
 compiler/typecheck/TcRnDriver.hs          |  7 ++-
 compiler/typecheck/TcRnMonad.hs           | 78 ++++++++++++++++----------
 compiler/typecheck/TcSMonad.hs            |  5 +-
 compiler/typecheck/TcSimplify.hs          |  3 +-
 compiler/typecheck/TcSplice.hs            |  2 +-
 compiler/typecheck/TcTyClsDecls.hs        |  4 +-
 compiler/typecheck/TcValidity.hs          |  7 ++-
 docs/users_guide/using-warnings.rst       |  9 +++
 ghc/GHCi/UI.hs                            |  4 +-
 testsuite/tests/ghc-api/T7478/T7478.hs    |  4 +-
 utils/mkUserGuidePart/Options/Warnings.hs |  5 ++
 44 files changed, 387 insertions(+), 184 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 736c2fe705f083fe42bd5fe9318f0636b6b2fca6


More information about the ghc-commits mailing list