mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Merge pull request #13266 from jamessan/pvs-check
This commit is contained in:
@@ -346,7 +346,7 @@ patch_sources() {(
|
|||||||
if test "$only_build" != "--only-build" ; then
|
if test "$only_build" != "--only-build" ; then
|
||||||
find \
|
find \
|
||||||
src/nvim test/functional/fixtures test/unit/fixtures \
|
src/nvim test/functional/fixtures test/unit/fixtures \
|
||||||
-name '*.c' \
|
\( -name '*.c' -a '!' -path '*xdiff*' \) \
|
||||||
-exec /bin/sh -c "$sh_script" - '{}' \;
|
-exec /bin/sh -c "$sh_script" - '{}' \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -363,11 +363,17 @@ run_analysis() {(
|
|||||||
|
|
||||||
cd "$tgt"
|
cd "$tgt"
|
||||||
|
|
||||||
|
if [ ! -r PVS-Studio.lic ]; then
|
||||||
|
pvs-studio-analyzer credentials -o PVS-Studio.lic 'PVS-Studio Free' 'FREE-FREE-FREE-FREE'
|
||||||
|
fi
|
||||||
|
|
||||||
# pvs-studio-analyzer exits with a non-zero exit code when there are detected
|
# pvs-studio-analyzer exits with a non-zero exit code when there are detected
|
||||||
# errors, so ignore its return
|
# errors, so ignore its return
|
||||||
pvs-studio-analyzer \
|
pvs-studio-analyzer \
|
||||||
analyze \
|
analyze \
|
||||||
|
--lic-file PVS-Studio.lic \
|
||||||
--threads "$(get_jobs_num)" \
|
--threads "$(get_jobs_num)" \
|
||||||
|
--exclude-path src/nvim/xdiff \
|
||||||
--output-file PVS-studio.log \
|
--output-file PVS-studio.log \
|
||||||
--file build/compile_commands.json \
|
--file build/compile_commands.json \
|
||||||
--sourcetree-root . || true
|
--sourcetree-root . || true
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||||
//
|
|
||||||
//
|
|
||||||
#include "nvim/vim.h"
|
#include "nvim/vim.h"
|
||||||
#include "nvim/extmark.h"
|
#include "nvim/extmark.h"
|
||||||
#include "nvim/decoration.h"
|
#include "nvim/decoration.h"
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||||
|
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||||
|
|
||||||
/// Helper program to exit and keep stdout open (like "xclip -i -loops 1").
|
/// Helper program to exit and keep stdout open (like "xclip -i -loops 1").
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user