<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/llvm/utils/FileCheck, branch meklort-10.0.1</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2019-12-03T19:21:13+00:00</updated>
<entry>
<title>[FileCheck] Given multiple -dump-input, prefer most verbose</title>
<updated>2019-12-03T19:21:13+00:00</updated>
<author>
<name>Joel E. Denny</name>
<email>jdenny.ornl@gmail.com</email>
</author>
<published>2019-12-03T15:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=fdde18a7c3e5ae62f458fb83230ec340bf658668'/>
<id>urn:sha1:fdde18a7c3e5ae62f458fb83230ec340bf658668</id>
<content type='text'>
Problem: `FILECHECK_OPTS` was implemented so that a test runner, such
as a bot, can specify FileCheck debugging options, such as
`-dump-input=fail`.  However, some existing test suites have FileCheck
calls that already specify `-dump-input=fail` or `-dump-input=always`.
Without this patch, such tests fail under such a test runner because
FileCheck doesn't accept multiple occurrences of `-dump-input`.

Solution: This patch permits multiple occurrences of `-dump-input` by
assigning precedence to its values in the following descending order:
`help`, `always`, `fail`, and `never`.  That is, any occurrence of
`help` always obtains help, and otherwise the behavior is similar to
`-v` vs. `-vv` in that the option specifying the greatest verbosity
has precedence.

Rationale: My justification for the new behavior is as follows.  I
have not experienced use cases where, either as a test runner or as a
test author, I want to **limit** the permitted debugging verbosity
(except as a test author in FileCheck's or lit's test suites where the
FileCheck debugging output itself is under test, but the solution
there is `env FILECHECK_OPTS=`, and I imagine we should use the same
solution anywhere else this need might occur).  Of course, as either a
test runner or test author, it is useful to **increase** debugging
verbosity.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D70784
</content>
</entry>
<entry>
<title>[FileCheck] Implement --ignore-case option.</title>
<updated>2019-10-11T11:59:14+00:00</updated>
<author>
<name>Kai Nacke</name>
<email>kai.nacke@redstar.de</email>
</author>
<published>2019-10-11T11:59:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=5b5b2fd2b8b4fe66d1e57065ab0aef22b16e4a13'/>
<id>urn:sha1:5b5b2fd2b8b4fe66d1e57065ab0aef22b16e4a13</id>
<content type='text'>
The FileCheck utility is enhanced to support a `--ignore-case`
option. This is useful in cases where the output of Unix tools
differs in case (e.g. case not specified by Posix).

Reviewers: Bigcheese, jakehehrlich, rupprecht, espindola, alexshap, jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D68146

llvm-svn: 374538
</content>
</entry>
<entry>
<title>Revert "[FileCheck] Implement --ignore-case option."</title>
<updated>2019-10-10T14:27:14+00:00</updated>
<author>
<name>Dmitri Gribenko</name>
<email>gribozavr@gmail.com</email>
</author>
<published>2019-10-10T14:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=d3aed7fc7986971ea15313871e7ffe8b4a5efa18'/>
<id>urn:sha1:d3aed7fc7986971ea15313871e7ffe8b4a5efa18</id>
<content type='text'>
This reverts commit r374339. It broke tests:
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/19066

llvm-svn: 374359
</content>
</entry>
<entry>
<title>[FileCheck] Implement --ignore-case option.</title>
<updated>2019-10-10T13:15:41+00:00</updated>
<author>
<name>Kai Nacke</name>
<email>kai.nacke@redstar.de</email>
</author>
<published>2019-10-10T13:15:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=dfd2b6f07fc40a190335f580d8a965bbebfe94df'/>
<id>urn:sha1:dfd2b6f07fc40a190335f580d8a965bbebfe94df</id>
<content type='text'>
The FileCheck utility is enhanced to support a `--ignore-case`
option. This is useful in cases where the output of Unix tools
differs in case (e.g. case not specified by Posix).

Reviewers: Bigcheese, jakehehrlich, rupprecht, espindola, alexshap, jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D68146

llvm-svn: 374339
</content>
</entry>
<entry>
<title>[FileCheck] Remove implementation types from API</title>
<updated>2019-09-30T14:12:03+00:00</updated>
<author>
<name>Thomas Preud'homme</name>
<email>thomasp@graphcore.ai</email>
</author>
<published>2019-09-30T14:12:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=02ada9bd2b41d850876a483bede59715e7550c1e'/>
<id>urn:sha1:02ada9bd2b41d850876a483bede59715e7550c1e</id>
<content type='text'>
Summary:
Remove use of FileCheckPatternContext and FileCheckString concrete types
from FileCheck API to allow moving it and the other implementation only
only declarations into a private header file.

Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68186

llvm-svn: 373211
</content>
</entry>
<entry>
<title>[FileCheck] Document FILECHECK_OPTS in -help</title>
<updated>2019-08-14T02:56:20+00:00</updated>
<author>
<name>Joel E. Denny</name>
<email>jdenny.ornl@gmail.com</email>
</author>
<published>2019-08-14T02:56:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=dbb757f462054ff9e06a46ce72135843e42f960b'/>
<id>urn:sha1:dbb757f462054ff9e06a46ce72135843e42f960b</id>
<content type='text'>
Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D65707

llvm-svn: 368787
</content>
</entry>
<entry>
<title>[FileCheck] Move -dump-input diagnostic to first line</title>
<updated>2019-08-14T02:56:09+00:00</updated>
<author>
<name>Joel E. Denny</name>
<email>jdenny.ornl@gmail.com</email>
</author>
<published>2019-08-14T02:56:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=608f2bfd65ec14debe22bce8179ffe2b514b4e91'/>
<id>urn:sha1:608f2bfd65ec14debe22bce8179ffe2b514b4e91</id>
<content type='text'>
Without this patch, `-dump-input` prints a diagnostic at the end of
its marker range.  For example:

```
         1: Start.
check:1     ^~~~~~
         2: Bad.
next:2      X~~~
         3: Many lines
next:2      ~~~~~~~~~~
         4: of input.
next:2      ~~~~~~~~~
         5: End.
next:2      ~~~~ error: no match found
```

This patch moves it to the beginning like this:

```
         1: Start.
check:1     ^~~~~~
         2: Bad.
next:2      X~~~ error: no match found
         3: Many lines
next:2      ~~~~~~~~~~
         4: of input.
next:2      ~~~~~~~~~
         5: End.
next:2      ~~~~
```

The former somehow looks nicer because the diagnostic doesn't appear
to be somewhere within the marker range.  However, the latter is more
practical, especially when the marker range includes the remainder of
a very long dump.  First, in the case of an error, this patch enables
me to search the dump for `error:` and usually immediately land where
the detected error began.  Second, when trying to follow FileCheck's
logic, it's best to read top down, so this patch enables me to see
each diagnostic as soon as I encounter its marker.

Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D65702

llvm-svn: 368786
</content>
</entry>
<entry>
<title>Revert r367649: Improve raw_ostream so that you can "write" colors using operator&lt;&lt;</title>
<updated>2019-08-02T07:22:34+00:00</updated>
<author>
<name>Rui Ueyama</name>
<email>ruiu@google.com</email>
</author>
<published>2019-08-02T07:22:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=4d41c332ef57281973e5e73295a56132ae12df77'/>
<id>urn:sha1:4d41c332ef57281973e5e73295a56132ae12df77</id>
<content type='text'>
This reverts commit r367649 in an attempt to unbreak Windows bots.

llvm-svn: 367658
</content>
</entry>
<entry>
<title>Improve raw_ostream so that you can "write" colors using operator&lt;&lt;</title>
<updated>2019-08-02T04:48:30+00:00</updated>
<author>
<name>Rui Ueyama</name>
<email>ruiu@google.com</email>
</author>
<published>2019-08-02T04:48:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=a52f982f1cd98ebf94abb5deb5244f460ddad2d1'/>
<id>urn:sha1:a52f982f1cd98ebf94abb5deb5244f460ddad2d1</id>
<content type='text'>
1. raw_ostream supports ANSI colors so that you can write messages to
the termina with colors. Previously, in order to change and reset
color, you had to call `changeColor` and `resetColor` functions,
respectively.

So, if you print out "error: " in red, for example, you had to do
something like this:

  OS.changeColor(raw_ostream::RED);
  OS &lt;&lt; "error: ";
  OS.resetColor();

With this patch, you can write the same code as follows:

  OS &lt;&lt; raw_ostream::RED &lt;&lt; "error: " &lt;&lt; raw_ostream::RESET;

2. Add a boolean flag to raw_ostream so that you can disable colored
output. If you disable colors, changeColor, operator&lt;&lt;(Color),
resetColor and other color-related functions have no effect.

Most LLVM tools automatically prints out messages using colors, and
you can disable it by passing a flag such as `--disable-colors`.
This new flag makes it easy to write code that works that way.

Differential Revision: https://reviews.llvm.org/D65564

llvm-svn: 367649
</content>
</entry>
<entry>
<title>[llvm] [FileCheck] Use FILECHECK_DUMP_INPUT_ON_FAILURE only when non-empty</title>
<updated>2019-07-26T15:38:57+00:00</updated>
<author>
<name>Michal Gorny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2019-07-26T15:38:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=ffc722a3581775cf6c4bbedf1364434a932dc378'/>
<id>urn:sha1:ffc722a3581775cf6c4bbedf1364434a932dc378</id>
<content type='text'>
Enable dumping output only if FILECHECK_DUMP_INPUT_ON_FAILURE is set to
a non-empty value.  This is necessary to support disabling it via
POSIX-compliant env(1) that does not support '-u' argument,
and therefore fix regression caused by r366980.

Differential Revision: https://reviews.llvm.org/D65334

llvm-svn: 367122
</content>
</entry>
</feed>
