klocwork

Can Klocwork (or other tools) be aware of types, typedefs and #define directives?

喜你入骨 提交于 2019-12-10 13:38:29
问题 I have been looking for tools to help detect errors that prevent a program from running properly as 64-bit code. Most recently, I've been toying with Klocwork and its custom checkers feature, which lets me navigate the source code as a tree using XPath. This is useful as a "smarter" alternative to regular expressions, but I have not been able to make it aware of types. For example, let's say I'd like to find every instance of a for loop that uses either an int or a long to count. The

Klocwork Get the amount of issues in a provided build number

拥有回忆 提交于 2019-12-08 04:41:20
问题 How can i get the number issues of a specified build number in klocwork insights 10.0, i'll need to use this in a bash script. 回答1: Klocwork has a WebAPI which you can use to query this type of information from a bash script, for example with curl . API documentation is also provided on your Klocwork server at http:// klocwork_server_host : port /review/api, for example http://localhost:8080/review/api. The query: curl --data "action=search&user=my_account&project=my_project&query=build:build

Klocwork Get the amount of issues in a provided build number

不打扰是莪最后的温柔 提交于 2019-12-06 15:34:50
How can i get the number issues of a specified build number in klocwork insights 10.0, i'll need to use this in a bash script. nonesuchnick Klocwork has a WebAPI which you can use to query this type of information from a bash script, for example with curl . API documentation is also provided on your Klocwork server at http:// klocwork_server_host : port /review/api, for example http://localhost:8080/review/api . The query: curl --data "action=search&user=my_account&project=my_project&query=build:build_1 status:Analyze state:New,Existing&ltoken=xxxx" http://localhost:8080/review/api will return