]> granicus.if.org Git - clang/commit
add a new driver-level -ferror-limit=412 option, which causes clang to stop
authorChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 20:49:23 +0000 (20:49 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 20:49:23 +0000 (20:49 +0000)
commit0f0c963f9b7ac6f0176c34d405d48fcb005dfab6
tree13e84874e41ed5c81130d1ae51a971747dd95a0c
parentc100214fdc41a7ea215f75d433eb1cb829fd4330
add a new driver-level -ferror-limit=412 option, which causes clang to stop
emitting diagnostics after it has produced that many errors.  Give this a
default value of 20 which produces plenty of errors for people to fix before
recompiling but not so many that their entire console scrolls away when the
compiler gets confused.  The experience looks like this:

$ clang foo.c
<tons of crap>
foo.c:102:3: error: unknown type name 'somethingbad'
  somethingbad x;
  ^
fatal error: too many errors emitted, stopping now
36 warnings and 20 errors generated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100689 91177308-0d34-0410-b5e6-96231b3b80d8
docs/UsersManual.html
include/clang/Driver/Options.td
lib/Driver/Tools.cpp