[PATCHv2] implement -Wold-style-cast

Dmitri Gribenko gribozavr at gmail.com
Thu Nov 21 17:13:31 PST 2013


On Thu, Nov 21, 2013 at 12:39 PM, Ondřej Hošek <ondra.hosek at gmail.com> wrote:
> It appears I have bungled the clang call in the test case header. Oops.

It would be great if it suggested a fixit to change the cast to the
correct C++ cast or a combination of those (for example, static cast
of a const cast).  Is it always possible to do this in a template?

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