Add 'remark' diagnostic type in clang

Chandler Carruth chandlerc at google.com
Fri Feb 28 01:56:05 PST 2014


On Fri, Feb 28, 2014 at 1:26 AM, Tobias Grosser <tobias at grosser.es> wrote:

> I would have thought that the difference is that a remark indicates
>> something that *isn't* a problem, and is just informational. That being
>> the
>> case, it doesn't make sense to me to upgrade remarks to warnings or to
>> errors. It would seem bizarre to me if -Werror converts remarks to errors
>> (and indeed, in this patch, it does not).
>>
>
> Good point. I explicitly mentioned that '-Werror' does not trigger on
> remarks in the commit message.
>
>
> > I think we should also reject
>
>> -Werror=some-remark.
>>
>
> Several people mentioned that they like this feature including Chris. This
> either needs more discussion or just more experience when some
> remarks have been added.


I actually really agree with Richard here. If these were things that made
sense to "escalate" they would be warnings. I think a good metric for
whether something should be a warning or a remark is whether it really ever
makes sense to break the compilation on it because it indicates a problem.

I also think that it is ultimately a mistake to re-use the same commandline
syntax for remarks. While I'd rather re-use all the infrastructure, I'd
rather separate these into a different spelling eventually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140228/a3ce68da/attachment.html>


More information about the cfe-commits mailing list