From f2cc9e8826a72f4434a838d7d31239e5fe9d0a37 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 19 Jan 2019 22:13:58 +0100 Subject: pvscheck.sh: set --sourcetree-root [ci skip] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- scripts/pvscheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/pvscheck.sh') 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" -- cgit