diff options
author | Justin Lebar <justin.lebar@gmail.com> | 2021-01-30 19:00:24 -0800 |
---|---|---|
committer | Justin Lebar <justin.lebar@gmail.com> | 2021-02-25 17:45:19 -0800 |
commit | c90dac27e94ec354a3e8919556ac5bc89b62c731 (patch) | |
tree | 99bd5103bf1313c7adc2c46827a5e55e88a8d011 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9678b07e42ee4cfabbc7405441ccc8ac493df4b5 (diff) | |
download | llvm-c90dac27e94ec354a3e8919556ac5bc89b62c731.zip llvm-c90dac27e94ec354a3e8919556ac5bc89b62c731.tar.gz llvm-c90dac27e94ec354a3e8919556ac5bc89b62c731.tar.bz2 |
[clang] Print 32 candidates on the first failure, with -fshow-overloads=best.
Previously, -fshow-overloads=best always showed 4 candidates. The
problem is, when this isn't enough, you're kind of up a creek; the only
option available is to recompile with different flags. This can be
quite expensive!
With this change, we try to strike a compromise. The *first* error with
more than 4 candidates will show up to 32 candidates. All further
errors continue to show only 4 candidates.
The hope is that this way, users will have *some chance* of making
forward progress, without facing unbounded amounts of error spam.
Differential Revision: https://reviews.llvm.org/D95754
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions