Connecting Tech Pros Worldwide Forums | Help | Site Map

Finding old-style casts in code.

Roy Smith
Guest
 
Posts: n/a
#1: Jul 23 '05
I've got about 100 KLOC in which I want to find any uses of old
C-style casts. Are there any good tools for this? Has anybody come
up with a regex which does a decent job of finding them, or are there
better ways to do it?

Walter
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Finding old-style casts in code.



"Roy Smith" <roy@panix.com> wrote in message
news:dam53f$h81$1@panix2.panix.com...[color=blue]
> I've got about 100 KLOC in which I want to find any uses of old
> C-style casts. Are there any good tools for this? Has anybody come
> up with a regex which does a decent job of finding them, or are there
> better ways to do it?[/color]

The Digital Mars C++ has a warning for C-style casts which can be enabled by
throwing the -wc compiler switch.

-Walter
www.digitalmars.com free C, C++, D compilers


Closed Thread