ruiu added a comment. If you make this configurable, what's the flag name? gcc uses -fmax-errors=n, while clang uses -ferror-limit=n. (Why they are different in the first place?) https://reviews.llvm.org/D26981