[commit: ghc] master: Provide a utility to check API Annotations (43751b2)

git at git.haskell.org git at git.haskell.org
Sun Oct 25 19:56:00 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/43751b2436f370d956d8021b3cdd3eb77801470b/ghc

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

commit 43751b2436f370d956d8021b3cdd3eb77801470b
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Sun Oct 25 20:19:38 2015 +0100

    Provide a utility to check API Annotations
    
    It is difficult for GHC developers to know if they have broken the API
    Annotations.
    
    This patch provides a utility that can be used as a test to show up
    errors in the API Annotations.
    
    It is based on the current tests for ghc-api/annotations which can parse
    a file using the just-built GHC API, and check that no annotations are
    disconnected from the ParsedSource in the output.
    
    In addition, it should be able to dump the annotations to a file, so a
    new feature developer can check that all changes to the parser do
    provide annotations.
    
    Trac ticket: #10917
    
    Test Plan: ./validate
    
    Reviewers: hvr, thomie, austin, bgamari
    
    Reviewed By: bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1368
    
    GHC Trac Issues: #10917


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

43751b2436f370d956d8021b3cdd3eb77801470b
 ghc.mk                                             |   3 +
 testsuite/mk/boilerplate.mk                        |   2 +
 testsuite/tests/ghc-api/annotations/Makefile       | 107 ++++-----------------
 testsuite/tests/ghc-api/annotations/boolFormula.hs |   7 --
 testsuite/tests/ghc-api/annotations/exampleTest.hs |   7 --
 testsuite/tests/ghc-api/annotations/t10255.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10268.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10269.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10278.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10280.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10307.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10309.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10312.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10354.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10357.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10358.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10396.hs      |   7 --
 testsuite/tests/ghc-api/annotations/t10399.hs      |   7 --
 .../check-api-annotations/Main.hs                  |  33 +++----
 utils/check-api-annotations/README                 |  18 ++++
 .../check-api-annotations.cabal}                   |   8 +-
 .../haddock => utils/check-api-annotations}/ghc.mk |  18 ++--
 22 files changed, 65 insertions(+), 229 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 43751b2436f370d956d8021b3cdd3eb77801470b


More information about the ghc-commits mailing list