2016-11-11 60 views
0

我使用coverity來分析我的代碼。 但當我配置cov時,出現錯誤。clang(不是clangcc)不被coverity8支持

> cov-configure --config 
> /home/opt/coverity/Coverity/cov-admin/cov-conf/config/coverity_config_armcc.xml 
> --comptype clang --compiler ****** --template 

得到了一個錯誤:

Unknown compiler type clang 
The only supported compiler types are: 
****** 

所以我很懷疑,如果Coverity的支持鐺編譯器,或者我做錯了。

覆蓋率版本爲8.

BRs。

+0

您應該與Coverity銷售代表交談,而不要在此處詢問。通過與他們交談,你會得到更好的迴應。我經常做。 –

回答

1

Coverity 8絕對支持Clang。問題是你正在使用--comptype clang - Clang的comptype是--comptype clangcc(注意額外的cc)。

如果您有疑問,cov-configure --list-compiler-types是一個很好的開始,文檔也​​是如此。

請注意,只要您的Clang二進制文件具有默認名稱,cov-configure --clang應該就是您所需要的。否則,我強烈建議您在cov-configure命令行上強烈建議使用--template,因爲Clang的CIT實現會大量使用「必需」參數,並且如果不使用--template,則不太可能成功捕獲到您的構建。

+0

Thx爲您的分析,解決了我的問題。很多。 –