1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/FileCheck
Alexey Samsonov 1c2a79dbfa FileCheck: fix a bug with multiple --check-prefix options.
Summary:
This fixes a subtle bug in new FileCheck feature added
in r194343. When we search for the first satisfying check-prefix,
we should actually return the first encounter of some check-prefix as a
substring, even if it's not a part of valid check-line. Otherwise
"FileCheck --check-prefix=FOO --check-prefix=BAR" with check file:

  FOO not a vaild check-line
  FOO: foo
  BAR: bar

incorrectly accepted file:

  fog
  bar

as it skipped the first two encounters of FOO, matching only BAR: line.

Reviewers: arsenm, dsanders

Reviewed By: dsanders

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2166

llvm-svn: 194565
2013-11-13 11:56:22 +00:00
..
check-a-b-has-b.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-b-a-has-b.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-dag-multi-prefix-2.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-dag-multi-prefix.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-dag-substring-prefix.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-dag-xfails.txt Add 'CHECK-DAG' support 2013-05-14 20:34:12 +00:00
check-dag.txt Fix handling of CHECK-DAG combined with CHECK-NOT 2013-08-02 11:32:50 +00:00
check-label-dag-capture.txt Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names and comments are present now to hopefully prevent repeat regression, as well as another test. 2013-10-11 18:38:36 +00:00
check-label-dag.txt Fix handling of CHECK-DAG inside of CHECK-LABEL. 2013-10-11 16:48:02 +00:00
check-label.txt Add new directive called CHECK-LABEL to FileCheck. 2013-07-12 14:51:05 +00:00
check-multi-prefix-label.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-multiple-prefixes-mixed.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-multiple-prefixes-nomatch.txt FileCheck: fix a bug with multiple --check-prefix options. 2013-11-13 11:56:22 +00:00
check-not-diaginfo.txt Prefix failing commands with not to make clear they are expected to fail. 2013-07-03 16:41:29 +00:00
check-prefixes.txt Fix "existant" typos 2013-10-29 02:35:28 +00:00
check-substring-multi-prefix-2.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
check-substring-multi-prefix.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
dos-style-eol.txt Canonicalize line endings to Linux style also when the --strict-whitespace flag is in use. This flag is supposed to affect horizontal whitespaces only. 2013-02-06 20:40:38 +00:00
first-character-match.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
line-count-2.txt Add FileCheck tests for @LINE 2013-10-31 18:18:09 +00:00
line-count.txt Add FileCheck tests for @LINE 2013-10-31 18:18:09 +00:00
multiple-missing-prefixes.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
next-no-match.txt
regex-brackets.txt Fix a bug in FileCheck that wouldn't let define variables as follows: 2012-12-02 16:02:41 +00:00
regex-no-match.txt
separate-multi-prefix.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
simple-var-capture.txt Fix a bug in FileCheck that wouldn't let define variables as follows: 2012-12-02 16:02:41 +00:00
two-checks-for-same-match.txt
validate-check-prefix.txt Allow multiple check prefixes in FileCheck. 2013-11-10 02:04:09 +00:00
var-ref-same-line.txt Support referencing variables defined on the same line. 2012-12-01 21:54:48 +00:00