#
81e5cd9e |
| 03-Jan-2014 |
Adrian Prantl <aprantl@apple.com> |
FileCheck: Print a nice error message for missing closing ']' in regex vars.
llvm-svn: 198449
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3 |
|
#
6f4f77b7 |
| 12-Dec-2013 |
Hans Wennborg <hans@hanshq.net> |
Expose FileCheck's AddFixedStringToRegEx as Regex::escape
Both FileCheck and clang's -verify need to escape strings for regexes, so let's expose this as a utility in the Regex class.
llvm-svn: 1970
Expose FileCheck's AddFixedStringToRegEx as Regex::escape
Both FileCheck and clang's -verify need to escape strings for regexes, so let's expose this as a utility in the Regex class.
llvm-svn: 197096
show more ...
|
Revision tags: llvmorg-3.4.0-rc2 |
|
#
43b5f572 |
| 20-Nov-2013 |
Daniel Sanders <daniel.sanders@imgtec.com> |
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 prefi
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
show more ...
|
Revision tags: llvmorg-3.4.0-rc1 |
|
#
a7181a1b |
| 13-Nov-2013 |
Alexey Samsonov <samsonov@google.com> |
FileCheck: fix matching of one check-prefix is a prefix of another
Summary: Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER" would silently ignore check-lines of the form: C
FileCheck: fix matching of one check-prefix is a prefix of another
Summary: Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER" would silently ignore check-lines of the form: CHECKER: foo
Reviewers: dsanders
Reviewed By: dsanders
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2168
llvm-svn: 194577
show more ...
|
#
21a340fa |
| 13-Nov-2013 |
Alexey Samsonov <samsonov@google.com> |
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
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
show more ...
|
#
13df4626 |
| 10-Nov-2013 |
Matt Arsenault <Matthew.Arsenault@amd.com> |
Allow multiple check prefixes in FileCheck.
This is useful if you want to run multiple variations of a single test, and the majority of check lines should be the same.
llvm-svn: 194343
|
#
981af002 |
| 12-Oct-2013 |
Will Dietz <wdietz2@illinois.edu> |
Add missing #include's to cctype when using isdigit/alpha/etc.
llvm-svn: 192519
|
#
e93a3a08 |
| 11-Oct-2013 |
Stephen Lin <stephenwlin@gmail.com> |
Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names
Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names and comments are present now to hopefully prevent repeat regression, as well as another test.
llvm-svn: 192477
show more ...
|
#
5c8becd1 |
| 11-Oct-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix handling of CHECK-DAG inside of CHECK-LABEL.
llvm-svn: 192463
|
#
ce3e4fc9 |
| 17-Sep-2013 |
Matt Arsenault <Matthew.Arsenault@amd.com> |
Missed using check type enum in one place
llvm-svn: 190897
|
#
c4d2d471 |
| 17-Sep-2013 |
Matt Arsenault <Matthew.Arsenault@amd.com> |
Use function's argument instead of the global flag.
For now it happens the argument is always the same.
llvm-svn: 190896
|
#
38820972 |
| 17-Sep-2013 |
Matt Arsenault <Matthew.Arsenault@amd.com> |
FileCheck refactor: use enum instead of bunch of bools
llvm-svn: 190893
|
#
398b32a2 |
| 16-Aug-2013 |
Stephen Lin <stephenwlin@gmail.com> |
FileCheck: Fix stray quote in CHECK-LABEL error message.
llvm-svn: 188564
|
#
c2735158 |
| 12-Aug-2013 |
Rui Ueyama <ruiu@google.com> |
[FileCheck] Fix a bug that cause FileCheck to misidentify check-prefix
FileCheck should check to make sure the prefix was found, and not a word containing it (e.g -check-prefix=BASEREL shouldn't mat
[FileCheck] Fix a bug that cause FileCheck to misidentify check-prefix
FileCheck should check to make sure the prefix was found, and not a word containing it (e.g -check-prefix=BASEREL shouldn't match NOBASEREL).
Patch by Ron Ofir.
llvm-svn: 188221
show more ...
|
#
cf708c32 |
| 02-Aug-2013 |
Tim Northover <tnorthover@apple.com> |
Fix handling of CHECK-DAG combined with CHECK-NOT
Patch by Daniel Sanders.
llvm-svn: 187651
|
#
f8bd2e5b |
| 12-Jul-2013 |
Stephen Lin <stephenwlin@gmail.com> |
Add new directive called CHECK-LABEL to FileCheck.
CHECK-LABEL is meant to be used in place on CHECK on lines containing identifiers or other unique labels (they need not actually be labels in the s
Add new directive called CHECK-LABEL to FileCheck.
CHECK-LABEL is meant to be used in place on CHECK on lines containing identifiers or other unique labels (they need not actually be labels in the source or output language, though.) This is used to break up the input stream into separate blocks delineated by CHECK-LABEL lines, each of which is checked independently. This greatly improves the accuracy of errors and fix-it hints in many cases, and allows for FileCheck to recover from errors in one block by continuing to subsequent blocks.
Some tests will be converted to use this new directive in forthcoming patches.
llvm-svn: 186162
show more ...
|
Revision tags: llvmorg-3.3.1-rc1 |
|
#
8c811724 |
| 25-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
keep only the StringRef version of getFileOrSTDIN.
llvm-svn: 184826
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2 |
|
#
91a1b2c9 |
| 14-May-2013 |
Michael Liao <michael.liao@intel.com> |
Add 'CHECK-DAG' support
Refer to 'FileCheck.rst'f for details of 'CHECK-DAG'.
llvm-svn: 181827
|
#
dcc7d48d |
| 14-May-2013 |
Michael Liao <michael.liao@intel.com> |
Refactor string checking. No functionality change.
llvm-svn: 181824
|
Revision tags: llvmorg-3.3.0-rc1 |
|
#
0b707eb8 |
| 25-Apr-2013 |
Michael Liao <michael.liao@intel.com> |
Remove SMLoc paired with CHECK-NOT patterns. Not functionality change.
Pattern has source location by itself. After adding a trivial method to retrieve it, it's unnecessary to pair a source location
Remove SMLoc paired with CHECK-NOT patterns. Not functionality change.
Pattern has source location by itself. After adding a trivial method to retrieve it, it's unnecessary to pair a source location for CHECK-NOT patterns. One thing revised after this is the diagnostic info is more accurate by pointing to the start of the CHECK-NOT pattern instead of the end of the CHECK-NOT pattern. E.g. diagnostic message previously looks like
<stdin>:1:1: error: CHECK-NOT: string occurred! test ^ test.txt:1:16: note: CHECK-NOT: pattern specified here CHECK-NOT: test ^
is changed to
<stdin>:1:1: error: CHECK-NOT: string occurred! test ^ test.txt:1:12: note: CHECK-NOT: pattern specified here CHECK-NOT: test ^
llvm-svn: 180578
show more ...
|
#
61bed2ff |
| 25-Apr-2013 |
Michael Liao <michael.liao@intel.com> |
Remove tailing whitespaces
llvm-svn: 180564
|
#
e963d660 |
| 23-Mar-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Plug a memory leak in FileCheck when the input file is empty.
llvm-svn: 177822
|
#
83c74e9f |
| 12-Feb-2013 |
Guy Benyei <guy.benyei@intel.com> |
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.
llvm-svn: 175006
|
#
5ea04c38 |
| 06-Feb-2013 |
Guy Benyei <guy.benyei@intel.com> |
Canonicalize line endings to Linux style also when the --strict-whitespace flag is in use. This flag is supposed to affect horizontal whitespaces only.
llvm-svn: 174541
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
91d19d8e |
| 04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort the #include lines for utils/...
I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it.
llvm-svn: 169251
|