qt-creator 中有没有办法检查未使用/死的代码

Is there a way in qt-creator to check unused/dead code?

本文关键字:代码 未使用 检查 有没有 qt-creator      更新时间:2023-10-16

我正在寻找任何东西,比如 qt-creator 插件来突出显示 c++ 中未使用/死的代码。或者也许有一个独立的 gui 工具。我正在使用基于 cmake 的项目。

提前感谢!

你可以

使用Coco。它是Qt集团开发的工具。

请看:https://www.qt.io/blog/quality-assurance/find-unused-functions-c-code-coverage