Fix #2512 - Use -o /dev/null for gcc linting

This commit is contained in:
w0rp
2019-05-20 13:00:32 +01:00
parent 4ee28d3129
commit 5e64acc6ab
8 changed files with 60 additions and 40 deletions

View File

@@ -194,6 +194,10 @@ function! s:GetLookupFromCompileCommandsFile(compile_commands_file) abort
let l:raw_data = []
silent! let l:raw_data = json_decode(join(readfile(a:compile_commands_file), ''))
if type(l:raw_data) isnot v:t_list
let l:raw_data = []
endif
let l:file_lookup = {}
let l:dir_lookup = {}