1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/FileCheck
Fedor Sergeev 82854f2e28 [FileCheck] introduce CHECK-COUNT-<num> repetition directive
In some cases it is desirable to match the same pattern repeatedly
many times. Currently the only way to do it is to copy the same
check pattern as many times as needed. And that gets pretty unwieldy
when its more than count is big.

Introducing CHECK-COUNT-<num> directive which acts like a plain CHECK
directive yet matches the same pattern exactly <num> times.

Extended FileCheckType to a struct to add Count there.
Changed some parsing routines to handle non-fixed length of directive
(all currently existing directives were fixed-length).

The code is generic enough to allow future support for COUNT in more
than just PlainCheck directives.

See motivating example for this feature in reviews.llvm.org/D54223.

Reviewed By: chandlerc, dblaikie
Differential Revision: https://reviews.llvm.org/D54336

llvm-svn: 346722
2018-11-13 00:46:13 +00:00
..
check-a-b-has-b.txt
check-b-a-has-b.txt
check-count.txt [FileCheck] introduce CHECK-COUNT-<num> repetition directive 2018-11-13 00:46:13 +00:00
check-dag-multi-prefix-2.txt
check-dag-multi-prefix.txt
check-dag-not-dag.txt [FileCheck] Fix search ranges for DAG-NOT-DAG 2018-07-20 20:09:56 +00:00
check-dag-overlap-torture.txt [FileCheck] Don't permit overlapping CHECK-DAG 2018-07-11 20:27:27 +00:00
check-dag-overlap.txt [FileCheck] Fix search ranges for DAG-NOT-DAG 2018-07-20 20:09:56 +00:00
check-dag-substring-prefix.txt
check-dag-xfails.txt
check-dag.txt
check-empty2.txt
check-empty-tag.txt
check-empty.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
check-label-dag-capture.txt
check-label-dag.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
check-label.txt
check-multi-prefix-label.txt
check-multiple-prefixes-mixed.txt
check-multiple-prefixes-nomatch-2.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
check-multiple-prefixes-nomatch.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
check-multiple-prefixes-substr.txt
check-not-diaginfo.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
check-prefixes.txt
check-substring-multi-prefix-2.txt
check-substring-multi-prefix.txt
defines.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
dos-style-eol.txt
envvar-opts.txt [FileCheck] Try to fix windows bots broken by r346272 2018-11-06 22:42:10 +00:00
first-character-match.txt
implicit-check-not.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
line-count-2.txt
line-count.txt
match-full-lines.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00
multiple-missing-prefixes.txt
next-no-match.txt
no-multi-suffixes.txt
opt-color.txt [SourceMgr][FileCheck] Obey -color by extending WithColor 2018-10-24 21:46:42 +00:00
regex-brackets.txt
regex-no-match.txt
regex-scope.txt
same.txt
separate-multi-prefix.txt
simple-var-capture.txt
two-checks-for-same-match.txt
validate-check-prefix.txt
var-ref-same-line.txt
verbose_mode.txt [FileCheck] Provide an option for FileCheck to dump original input to stderr on failure 2018-07-20 20:21:57 +00:00
verbose.txt [FileCheck] Implement -v and -vv for tracing matches 2018-07-13 03:08:23 +00:00