llvm-6502/utils/FileCheck
Alexey Samsonov 7df6641654 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194565 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-13 11:56:22 +00:00
..
CMakeLists.txt Revert "Revert "Windows: Add support for unicode command lines"" 2013-10-07 01:00:07 +00:00
FileCheck.cpp FileCheck: fix a bug with multiple --check-prefix options. 2013-11-13 11:56:22 +00:00
Makefile Merge System into Support. 2010-11-29 18:16:10 +00:00