1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
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
..
2013-11-01 17:09:14 +00:00
2012-12-11 00:23:07 +00:00
2013-07-10 00:52:41 +00:00
2013-11-01 17:09:14 +00:00
2007-12-29 20:37:13 +00:00
2013-01-02 09:10:48 +00:00
2007-12-29 20:37:13 +00:00
2013-01-28 22:05:50 +00:00
2010-08-04 16:11:24 +00:00
2012-01-26 22:06:23 +00:00
2013-04-05 20:00:35 +00:00
2012-11-17 06:38:44 +00:00