Add 'remark' diagnostic type in clang

Dmitri Gribenko gribozavr at gmail.com
Fri Feb 28 02:10:34 PST 2014


On Fri, Feb 28, 2014 at 9:56 AM, Chandler Carruth <chandlerc at google.com> wrote:
> 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.

+1.  Our current logic around -W* flags is already complex enough (to
understand -- both for users and developers, to extend and to
maintain), and overloading the meaning of -W* for remarks will only
make it even more complex, and possibly confusing as well (it is well
established that -W* flags enable warnings).

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list