[commit: ghc] wip/ghc-8.8-az: check-api-annotations checks for annotation preceding its span (6a2e19b)

git at git.haskell.org git at git.haskell.org
Thu Feb 28 02:14:37 UTC 2019


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

On branch  : wip/ghc-8.8-az
Link       : http://ghc.haskell.org/trac/ghc/changeset/6a2e19bc5e89d69bfaa16499007b874976f9b614/ghc

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

commit 6a2e19bc5e89d69bfaa16499007b874976f9b614
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Tue Jan 22 23:29:25 2019 +0200

    check-api-annotations checks for annotation preceding its span
    
    For an API annotation to be useful, it must not occur before the span
    it is enclosed in.
    
    So, for check-api-annotation output, a line such as
    
    ((Test16212.hs:3:22-36,AnnOpenP), [Test16212.hs:3:21]),
    
    should be flagged as an error, as the AnnOpenP location of 3:21
    precedes its enclosing span of 3:22-26.
    
    This patch does this.
    
    Closes #16217
    
    (cherry picked from commit 3cf12e6081e7a9f0c3d515de52ffd079186816a5)


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

6a2e19bc5e89d69bfaa16499007b874976f9b614
 testsuite/tests/ghc-api/annotations/Makefile       | 12 ------
 testsuite/tests/ghc-api/annotations/T10255.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10268.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10269.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10276.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10278.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10280.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10307.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10309.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10312.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10354.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10357.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10358.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10396.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10399.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T10598.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T11018.stdout  |  8 +++-
 testsuite/tests/ghc-api/annotations/T11321.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T11332.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T12417.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T13163.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T15303.stdout  |  7 +++-
 testsuite/tests/ghc-api/annotations/T16212.stdout  | 49 ++++++++++++++++++++++
 testsuite/tests/ghc-api/annotations/Test16212.hs   | 11 +++++
 testsuite/tests/ghc-api/annotations/all.T          |  6 ++-
 .../tests/ghc-api/annotations/boolFormula.stdout   |  7 +++-
 .../tests/ghc-api/annotations/bundle-export.stdout |  7 +++-
 .../tests/ghc-api/annotations/exampleTest.stdout   |  7 +++-
 .../tests/ghc-api/annotations/load-main.stdout     |  7 +++-
 utils/check-api-annotations/Main.hs                | 22 +++++++---
 30 files changed, 233 insertions(+), 43 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 6a2e19bc5e89d69bfaa16499007b874976f9b614


More information about the ghc-commits mailing list