Skip to content
forked from neovim/neovim

Commit

Permalink
Merge pull request neovim#8127 from jamessan/update-pvs-headers
Browse files Browse the repository at this point in the history
Add missing PVS headers to new files
  • Loading branch information
jamessan authored Mar 12, 2018
2 parents e24e985 + 4e5e650 commit f5b0f5e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/pvscheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,15 @@ run_analysis() {(

cd "$tgt"

# pvs-studio-analyzer exits with a non-zero exit code when there are detected
# errors, so ignore its return
pvs-studio-analyzer \
analyze \
--threads "$(get_jobs_num)" \
--output-file PVS-studio.log \
--verbose \
--file build/compile_commands.json \
--sourcetree-root .
--sourcetree-root . || true

plog-converter -t xml -o PVS-studio.xml PVS-studio.log
plog-converter -t errorfile -o PVS-studio.err PVS-studio.log
Expand Down
3 changes: 3 additions & 0 deletions src/nvim/os/lang.c
Original file line number Diff line number Diff line change
@@ -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

#ifdef __APPLE__
# define Boolean CFBoolean // Avoid conflict with API's Boolean
# include <CoreFoundation/CFLocale.h>
Expand Down
3 changes: 3 additions & 0 deletions src/nvim/os/pty_process_win.c
Original file line number Diff line number Diff line change
@@ -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

#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
Expand Down
3 changes: 3 additions & 0 deletions src/nvim/viml/parser/parser.c
Original file line number Diff line number Diff line change
@@ -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

#include "nvim/viml/parser/parser.h"

#ifdef INCLUDE_GENERATED_DECLARATIONS
Expand Down

0 comments on commit f5b0f5e

Please sign in to comment.