[cfe-commits] [PATCH][PR11329][v7] Generalize -Wempty-body: warn when statement body is empty

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 25 12:25:32 PST 2012


On Wed, Jan 25, 2012 at 9:56 PM, Argyrios Kyrtzidis <kyrtzidis at apple.com> wrote:
> I don't think it make sense to warn on template instantiations, since these are syntactic warnings. For template instantiations they would only contribute noise [...]

Agreed, see attached patch.

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>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generalize-warn-empty-body-v11.patch
Type: text/x-diff
Size: 33948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120125/b96fac88/attachment.patch>


More information about the cfe-commits mailing list