gpt4 book ai didi

qt - 将覆盖率扫描添加到 Qt 应用程序

转载 作者:行者123 更新时间:2023-12-04 12:47:42 28 4
gpt4 key购买 nike

我正在尝试添加 Coverity Scan static analysis到我的 Qt 项目,但我无法得到结果。

我下载了 coverity 扫描构建工具并使用以下命令行:

cov-build --dir cov-int make

产生以下日志:

...
my build log
...
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
/Users/martin/dev/builds/ConsoleTest01-Desktop_Qt_5_3_clang_64bit-Debug/cov-int/build-log.txt

我怎样才能走得更远?

我在 MacOS 10.9 下使用 Qt 5.3.2。

最佳答案

我没有仔细阅读文档:https://scan.coverity.com/download?tab=cxx我必须先通过运行配置覆盖率:

cov-configure --comptype clangcxx --compiler clang++ --template

关于qt - 将覆盖率扫描添加到 Qt 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26803640/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com