diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2020-07-10 07:50:31 -0400 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2020-07-10 11:02:11 -0400 |
commit | 77b6ddf1bd77da90407316345156415dc646e744 (patch) | |
tree | 02e14be1e8eb47940a3b399508d5103eb6ae8cf1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | bce8fced41b96260a42dfbb254240a49769fafa9 (diff) | |
download | llvm-77b6ddf1bd77da90407316345156415dc646e744.zip llvm-77b6ddf1bd77da90407316345156415dc646e744.tar.gz llvm-77b6ddf1bd77da90407316345156415dc646e744.tar.bz2 |
[FileCheck] In input dump, elide only if ellipsis is shorter
For example, given `-dump-input-context=3 -vv`, the following now
shows more leading context for the error than requested because a
leading ellipsis would occupy the same number of lines as it would
elide:
```
<<<<<<
1: foo6
2: foo5
3: foo4
4: foo3
5: foo2
6: foo1
7: hello world
check:1 ^~~~~
check:2 X~~~~ error: no match found
8: foo1
check:2 ~~~~
9: foo2
check:2 ~~~~
10: foo3
check:2 ~~~~
.
.
.
>>>>>>
```
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D83526
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions