[cfe-dev] Info diagnostic level
David Chisnall
csdavec at swan.ac.uk
Fri Nov 20 11:17:47 PST 2009
On 20 Nov 2009, at 19:08, Sean Hunt wrote:
> On Fri, Nov 20, 2009 at 10:29 AM, Douglas Gregor <dgregor at apple.com>
> wrote:
>> - How do all of the existing diagnostic clients format infos/
>> remarks?
>> - Are infos/remarks counted in the diagnostic count?
>> - How do infos/remarks behave w.r.t. -Werror?
>>
>> - Doug
>
> I think that remarks (I prefer the name) should not trigger -Werror;
> most remarks should, in my opinion be things that indicate nothing is
> wrong, and might in fact be helpful. A good example might be
> suggestions for changes that would increase the optimizer's potential
> (such as marking a variable as restrict). I suppose someone might
> really want -Wremark-error, but that should be a separate flag.
Delphi called these 'hints' and they included things that were
semantically correct, but bad style. It was quite a nice feature,
especially for people learning the language.
David
-- Sent from my Difference Engine
More information about the cfe-dev
mailing list