3

I'm trying to add Coverity Scan static analysis to my Qt project but I'm not able to get the result.

I download the coverity scan build tools and use the following command line:

cov-build --dir cov-int make

Which produces the following log:

...
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

How can I go further?

I'm using Qt 5.3.2 under MacOS 10.9.

4

2 回答 2

5

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

cov-configure --comptype clangcxx --compiler clang++ --template
于 2014-11-07T15:34:35.493 回答
0

您需要先运行 qmake,然后您可以使用 make 运行 cov-int 命令。

我发现在 Qt-Creator 创建的 build- 文件夹中运行 cov-int 最简单。

于 2017-03-16T21:29:02.680 回答