[cfe-commits] r100689 - in /cfe/trunk: docs/UsersManual.html include/clang/Driver/Options.td lib/Driver/Tools.cpp

Eli Friedman eli.friedman at gmail.com
Thu Apr 8 00:37:46 PDT 2010


On Thu, Apr 8, 2010 at 12:34 AM, Chris Lattner <sabre at nondot.org> wrote:
>
> On Apr 8, 2010, at 12:33 AM, Ted Kremenek wrote:
>
>>
>> On Apr 7, 2010, at 7:34 PM, Chris Lattner wrote:
>>
>>> On Apr 7, 2010, at 7:31 PM, Daniel Dunbar wrote:
>>>
>>>>>
>>>>> $ 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.
>>>>
>>>> Would it make sense for this to say something like
>>>> 36 warnings and 20 (of 33 total) errors generated.
>>>
>>> That would be somewhat nice, fatal errors can stop compilation early as well in theory. Getting a total count isn't really feasible, and I don't really think it's useful.
>>>
>>
>> Don't fatal errors just suppress the emission of diagnostics, and not stop compilation?
>
> In general yes, but the compiler can try to stop early, for example in the top-level translation unit parsing loop.

Is this implemented?  It sounds like it could improve delta performance.

-Eli



More information about the cfe-commits mailing list