pvs analyze script

This commit is contained in:
2019-04-14 23:28:31 +07:00
parent 53fefff3f3
commit 305d84fb54

15
scripts/pvs_analyze.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
BUILD_DIR=`dirname "$BASH_SOURCE"`/../build
mkdir -p $BUILD_DIR/pvs_analyze
cd $BUILD_DIR/pvs_analyze
rm -rf pvs_report
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On ../..
pvs-studio-analyzer analyze\
-e ../../untests\
-e ../../modules\
-e ../../sources/3rdparty\
-o pvs_report.log\
-j8
plog-converter -a GA:1,2 -t fullhtml -o pvs_report pvs_report.log
open pvs_report/index.html