1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/FileCheck
Daniel Sanders 29b990c693 FileCheck: fix a bug with multiple --check-prefix options. Similar to r194565
Summary:
Directives are being ignored, when they occur between a partial-word false
match and any match on another prefix.

For example, with FOO and BAR prefixes:
   _FOO
   FOO: foo
   BAR: bar
FileCheck incorrectly matches:
   fog
   bar

This happens because FOO falsely matched as a partial word at '_FOO' and was
ignored while BAR matched at 'BAR:'. The match of BAR is incorrectly returned
as the 'first match' causing the FOO directive to be discarded.

Fixed this the same way as r194565 (D2166) did for a similar test case.
The partial-word false match should be counted as a match for the purposes of
finding the first match of a prefix, but should be returned as a false match
using CheckTy::CheckNone so that it isn't treated as a directive.

Fixes PR17995

Reviewers: samsonov, arsenm

Reviewed By: samsonov

CC: llvm-commits

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

llvm-svn: 195248
2013-11-20 13:25:05 +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-2.txt FileCheck: fix a bug with multiple --check-prefix options. Similar to r194565 2013-11-20 13:25:05 +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-multiple-prefixes-substr.txt FileCheck: fix matching of one check-prefix is a prefix of another 2013-11-13 14:12:52 +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