Don't create precompiled headers when checking them

This commit is contained in:
Alejandro Exojo 2012-10-09 09:13:41 +02:00
parent 2e7d73305b
commit 5e12357d6c

View File

@ -11,7 +11,6 @@
"============================================================================
" in order to also check header files add this to your .vimrc:
" (this usually creates a .gch file in your source directory)
"
" let g:syntastic_cpp_check_header = 1
"
@ -108,8 +107,16 @@ function! SyntaxCheckers_cpp_GetLocList()
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
if exists('g:syntastic_cpp_check_header')
if has('win32')
let null_device = '-o nul'
elseif has('unix') || has('mac')
let null_device = '-o /dev/null'
else
let null_device = ''
endif
let makeprg = g:syntastic_cpp_compiler.' -c '.shellescape(expand('%')) .
\ ' ' . g:syntastic_cpp_compiler_options .
\ ' ' . null_device .
\ ' ' . syntastic#c#GetIncludeDirs('cpp')
else
return []