summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-11-13 11:56:22 +0000
committerAlexey Samsonov <samsonov@google.com>2013-11-13 11:56:22 +0000
commit21a340fa99560fb10f8ea7d87e8235a40771bc31 (patch)
tree9c3740a171eef326ae1c8722919140b9b2ffe3dc /clang/lib/Frontend/CompilerInvocation.cpp
parenta83c0482dda12d68c9c96ba5f504fb1b1ddcd526 (diff)
downloadbcm5719-llvm-21a340fa99560fb10f8ea7d87e8235a40771bc31.tar.gz
bcm5719-llvm-21a340fa99560fb10f8ea7d87e8235a40771bc31.zip
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud