[PATCH] D56789: Allow CHECK-SAME, NEXT and EMPTY after CHECK-DAG

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 16 09:05:31 PST 2019


thopre created this revision.
thopre added reviewers: jdenny, probinson.
Herald added subscribers: llvm-commits, kristina, hiraditya.

When following a CHECK-DAG block, FileCheck correctly matches
CHECK-NEXT, CHECK-SAME and CHECK-EMPTY relative to the CHECK-DAG that
matches the latest line in the input file, as one would expect. However,
FileCheck refuses to run if the CHECK-DAG directives are the first in
the file. This commit lift this restriction.


Repository:
  rL LLVM

https://reviews.llvm.org/D56789

Files:
  llvm/docs/CommandGuide/FileCheck.rst
  llvm/lib/Support/FileCheck.cpp
  llvm/test/FileCheck/check-dag.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56789.182061.patch
Type: text/x-patch
Size: 5575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190116/8cf31d8e/attachment.bin>


More information about the llvm-commits mailing list