Maybe as an addition to Ikarus' answer. Add this in the .clangd file:
CompileFlags: Add: - -ferror-limit=0