[PATCH] D47114: [FileCheck] Implement -v and -vv for tracing matches
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 5 13:44:59 PDT 2018
jdenny updated this revision to Diff 154302.
jdenny added a comment.
This updates -v to make more sense in the case of the new CHECK-EMPTY directive. Without this update, -v reported the match for CHECK-EMPTY as occurring at the preceding newline. That's confusing, especially if the preceding line was also empty because it then seemed like the expected empty line was the preceding line instead. Because CHECK-EMPTY is conceptually a CHECK-NEXT for an empty line, -v now reports the match as occurring after the preceding newline, just as it does for CHECK-NEXT. That is, as for CHECK-NEXT, the match range starts at the empty line, and there is a constraint that there is one preceding newline in the search range.
https://reviews.llvm.org/D47114
Files:
docs/CommandGuide/FileCheck.rst
test/FileCheck/check-empty.txt
test/FileCheck/check-label-dag.txt
test/FileCheck/check-multiple-prefixes-nomatch-2.txt
test/FileCheck/check-multiple-prefixes-nomatch.txt
test/FileCheck/check-not-diaginfo.txt
test/FileCheck/defines.txt
test/FileCheck/implicit-check-not.txt
test/FileCheck/match-full-lines.txt
test/FileCheck/verbose.txt
utils/FileCheck/FileCheck.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47114.154302.patch
Type: text/x-patch
Size: 23768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180705/dca7f854/attachment-0001.bin>
More information about the llvm-commits
mailing list