Skip to content

PVS Studio

Gaetano Checinski edited this page Feb 26, 2019 · 3 revisions

PVS-Studio is a tool for detecting bugs and security weaknesses in the source code of programs, written in C, C++, C# and Java. It works in Windows, Linux and macOS environment.

You can find their documentation here.

Buck (and therefore Buckaroo) can integrate with PVS Studio via a compilation-database.

To generate the compile_commands.json file, use the compilation-database flavor:

buck build //:app#compilation-database --out compile_commands.json

(Replace //:app with the target you wish to inspect)

Now you should be able to use pvs-studio-analyzer by using the generated compile_commands.json:

pvs-studio-analyzer analyze -f ./compile_commands.json ...

Clone this wiki locally