查找从未被调用的函数 [英] Find never-called functions

查看:239
本文介绍了查找从未被调用的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Qt与Visual Studio 2008项目中做一些重构,我想知道是否有一个简单的方法来找到从未被调用过的函数和方法。

I'm doing some refactoring in a project using Qt with Visual Studio 2008, and I'd like to know if there's a simple way to find the functions and methods that are never called?

推荐答案

您可以尝试使用静态代码分析工具,例如 http:/ /en.wikipedia.org/wiki/Cppcheck

You can try a static code analysis tool, like http://en.wikipedia.org/wiki/Cppcheck

这篇关于查找从未被调用的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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