aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-10-13 17:12:07 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-10-13 17:12:43 +0200
commit02114e15daad7f02e65289412d37334618386ce5 (patch)
tree1a0dd39591f8da1a9f8f67f3fa9390cda70ae84c /clang/lib/Frontend/CompilerInvocation.cpp
parent24e07570cc928b75e894b81639cabe96c660ccef (diff)
downloadllvm-02114e15daad7f02e65289412d37334618386ce5.zip
llvm-02114e15daad7f02e65289412d37334618386ce5.tar.gz
llvm-02114e15daad7f02e65289412d37334618386ce5.tar.bz2
[lldb] Allow limiting the number of error diagnostics when parsing an expression
While debugging another bug I found out that we currently don't set any limit for the number of diagnostics Clang emits. If a user does something that generates a lot of errors (like including some long header file from within the expression function), then we currently spam the LLDB output with potentially thousands of Clang error diagnostics. Clang sets a default limit of 20 errors, but given that LLDB is often used interactively for small expressions I would say a limit of 5 is enough. The limit is implemented as a setting, so if a user cares about seeing having a million errors printed to their terminal then they can just increase the settings value. Reviewed By: shafik, mib Differential Revision: https://reviews.llvm.org/D88889
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions