aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-19 22:13:58 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-19 22:13:58 +0100
commitf2cc9e8826a72f4434a838d7d31239e5fe9d0a37 (patch)
tree14d15ba732f298a221dd3976ce74d0989eeffaba
parent391f0c1ce76fcb83658fccaea343ad216dc01b3c (diff)
downloadrneovim-f2cc9e8826a72f4434a838d7d31239e5fe9d0a37.tar.gz
rneovim-f2cc9e8826a72f4434a838d7d31239e5fe9d0a37.tar.bz2
rneovim-f2cc9e8826a72f4434a838d7d31239e5fe9d0a37.zip
pvscheck.sh: set --sourcetree-root [ci skip]
Reverts previous experiment. PVS root is working correctly, one can observe this in the PVS-studio.err file, for example: /usr/local/clang-7.0.0/lib/clang/7.0.0/include/stddef.h:51:1: warning: V677 ... /usr/local/clang-7.0.0/lib/clang/7.0.0/include/stddef.h:132:1: warning: V677 ... ./src/nvim/fileio.c:1382:1: warning: V1026 ... ./src/nvim/fileio.c:1388:1: warning: V1026 ... The "./src/nvim/…" paths are correctly rooted, yet PVS somehow still thinks it should analyze "/usr/local/clang-7.0.0/…". See also: https://stackoverflow.com/q/44906903
-rwxr-xr-xscripts/pvscheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index 1c03cd4f87..fed50dde53 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -371,7 +371,7 @@ run_analysis() {(
--output-file PVS-studio.log \
--verbose \
--file build/compile_commands.json \
- || true
+ --sourcetree-root . || true
rm -rf PVS-studio.{xml,err,tsk,html.d}
local plog_args="PVS-studio.log --srcRoot . --excludedCodes V011"