qt-creator 中有没有办法检查未使用/死的代码
Is there a way in qt-creator to check unused/dead code?
我正在寻找任何东西,比如 qt-creator 插件来突出显示 c++ 中未使用/死的代码。或者也许有一个独立的 gui 工具。我正在使用基于 cmake 的项目。
提前感谢!
你可以
使用Coco。它是Qt集团开发的工具。
请看:https://www.qt.io/blog/quality-assurance/find-unused-functions-c-code-coverage
相关文章:
- clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - 体系结构的未定义符号 x86_64:
- C++代码中奇怪的未使用的静态字符串声明
- 来自重载或模板化函数的额外未使用代码的影响?
- 在编译期间包含未使用的代码
- 我可以在将项目编译为静态库(未定义的引用)时在代码中使用 QImage 吗?
- 用于 JUnit 测试的本机代码未使用 'nar-maven-plugin' 编译
- 如果 LTO 中的代码依赖于其构造的副作用,是否允许 LTO 删除未使用的全局对象?
- 我如何才能找到C 代码以找到所有未使用的返回值
- gcc 什么时候编译未使用的模板代码?
- C++Visual Studio Release生成未使用的代码崩溃
- 将未使用的元素添加到C/C 结构加快并减慢代码执行
- 进度条未使用C++代码和GTK+进行更新
- 编译器是否会排除未使用的模板代码
- qt-creator 中有没有办法检查未使用/死的代码
- 在导致未定义符号错误的示例代码上使用 Boost 库
- 调试代码并C++未使用的参数警告
- 未使用调试器标志编译的代码出现分段错误
- 是否有任何工具/方法来检测/删除所有未使用的变量,宏,头(包括)和函数从c++代码
- 试图使用typeid时,代码未编译
- 未使用代码中的开销