Closed levihuayuzhang closed 6 months ago
Stopping after 20 errors is the default behaviour of the clang frontend.
You can override this using -ferror-limit=0
(see https://clang.llvm.org/docs/UsersManual.html#cmdoption-ferror-limit), which you could add to the commands clangd uses for parsing your files by adding the following to .clangd
:
CompileFlags:
Add: [-ferror-limit=0]
Thanks a lot~
Wondering if there has an upper limits for showing the error? I opened one file contains 56 errors but clangd only shows first 20s (in editor and
problems window
)System information Clangd version (from the log, or
clangd --version
): 14.0.0 clangd extension version: newest stable Operating system: Ubuntu in WSL2My arguments
Thanks a lot.