llvm-mirror/test
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
..
Analysis Use correct size for address space in BasicAA. 2013-11-16 00:36:43 +00:00
Assembler Make it explicit that nulls are not allowed in names. 2013-11-19 21:12:39 +00:00
Bindings
Bitcode The 'optnone' attribute means don't inline anything into this function 2013-11-18 21:44:03 +00:00
BugPoint
CodeGen AVX-512: Concat 4 128-bit vectors in one 512-bit vector. 2013-11-20 09:10:40 +00:00
DebugInfo DebugInfo: Partial implementation of DWARF type units. 2013-11-19 23:08:21 +00:00
ExecutionEngine [mips] Resolve relocation for the stubs in MCJIT when load address is known 2013-11-19 21:56:00 +00:00
Feature The 'optnone' attribute means don't inline anything into this function 2013-11-18 21:44:03 +00:00
FileCheck FileCheck: fix a bug with multiple --check-prefix options. Similar to r194565 2013-11-20 13:25:05 +00:00
Instrumentation [ASan] Fix PR17867 - make sure ASan doesn't crash if use-after-scope and use-after-return are combined. 2013-11-18 14:53:55 +00:00
Integer
JitListener
Linker
LTO
MC reverts 195057 per request 2013-11-19 20:53:28 +00:00
Object
Other
TableGen
tools llvm-cov: Added file checksum to gcno and gcda files. 2013-11-20 04:15:05 +00:00
Transforms llvm-cov: Added file checksum to gcno and gcda files. 2013-11-20 04:15:05 +00:00
Unit
Verifier
YAMLParser
.clang-format Add .clang-format without column limit to subdirectory tests/. 2013-11-19 04:26:05 +00:00
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh