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

@@ -3,8 +3,9 @@ Before:
let g:ale_c_parse_makefile = 0
call ale#assert#SetUpLinterTest('cpp', 'gcc')
let b:command_tail = ' -S -x c++ -fsyntax-only -iquote'
\ . ' ' . ale#Escape(getcwd())
let b:command_tail = ' -S -x c++'
\ . ' -o ' . (has('win32') ? 'nul': '/dev/null')
\ . ' -iquote ' . ale#Escape(getcwd())
\ . ' -std=c++14 -Wall -'
After: