如何查找(和替换)所有旧的C风格的数据类型在我的C ++源代码code蒙上? [英] How to find (and replace) all old C-style data type casts in my C++ source code?

查看:150
本文介绍了如何查找(和替换)所有旧的C风格的数据类型在我的C ++源代码code蒙上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能找到所有旧的C风格的类型转换在我的源代码?

How can I locate all old C-style cast in my source?

我使用Visual Studio中,可能有一些编译器警告,我必须启用?

I'm using Visual Studio, may be there is some compiler warning that I have to enable?

推荐答案

GCC有权选择 -WOLD式铸造这会警告你,如果发现任何C-风格的转换。

GCC has the option -Wold-style-cast which will warn you if it finds any C-style casts.

这篇关于如何查找(和替换)所有旧的C风格的数据类型在我的C ++源代码code蒙上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆