This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -Wold-style-cast for g++, please ?


>>>>> "AO" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 AO> Here's a patch that creates -Wold-style-cast, produced whenever an
 AO> old-style cast is issued.  I added it to -Wall too; it should be easy
 AO> to change this.

What would be *really* cool would be if the warning would tell you,
for each use of an old-style cast, which new-style cast(s) to use
instead. :-)

Then the warning could also serve to teach people how to use the
new-style casts.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]