[PATCHv3] implement -Wold-style-cast

Ondřej Hošek ondra.hosek at gmail.com
Tue Nov 26 10:51:09 PST 2013


Hi everyone,

On Tue, Nov 26, 2013 at 9:37 AM, Alp Toker <alp at nuanti.com> wrote:
> GCC doesn't warn on (void) casts.
>
> The patch should be fixed to handle these cases too:
>
> (void)x; // no warning
> (long)x; // warning
>
> The necessary checks can be done in Parse, but might be slightly easier /
> future-proof handle them in Sema.

Thanks for the feedback; I have updated the patch accordingly.

Cheers,
~~ Ondra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Wold-style-cast.patch
Type: text/x-patch
Size: 2309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131126/53dd3e4b/attachment.bin>


More information about the cfe-commits mailing list