]> granicus.if.org Git - llvm/commit
FileCheck [3/12]: Stricter parsing of @LINE expressions
authorThomas Preud'homme <thomasp@graphcore.ai>
Mon, 29 Apr 2019 17:46:26 +0000 (17:46 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Mon, 29 Apr 2019 17:46:26 +0000 (17:46 +0000)
commit11c60390e35626055d83510062def05aad624228
tree2a5b71afa9f68b7d27e1e6f2f53ad661f34103c4
parent1c43195dbd2e7cc9dedafe07f5778b4aa18d63b3
FileCheck [3/12]: Stricter parsing of @LINE expressions

Summary:
This patch is part of a patch series to add support for FileCheck
numeric expressions. This specific patch gives earlier and better
diagnostics for the @LINE expressions.

Rather than detect parsing errors at matching time, this commit adds
enhance parsing to detect issues with @LINE expressions at parse time
and diagnose them more accurately.

Copyright:
    - Linaro (changes up to diff 183612 of revision D55940)
    - GraphCore (changes in later versions of revision D55940 and
                 in new revision created off D55940)

Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk

Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60383

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359475 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileCheck.h
lib/Support/FileCheck.cpp
test/FileCheck/line-count.txt
unittests/Support/FileCheckTest.cpp