[PATCHv2] implement -Wold-style-cast
Ondřej Hošek
ondra.hosek at gmail.com
Thu Nov 21 17:16:57 PST 2013
On Don, 2013-11-21 at 17:13 -0800, Dmitri Gribenko wrote:
> 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).
Certainly -- I just don't know how easy it is to automatically decide
which sort of cast should be used (static/dynamic/reinterpret).
> Is it always possible to do this in a template?
Unfortunately, I don't know.
Cheers,
~~ Ondra
More information about the cfe-commits
mailing list