mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-17 11:31:26 +08:00
Fix #2512 - Use -o /dev/null for gcc linting
This commit is contained in:
8 files changed
+60
-40
No files matched your search
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user