Fixed compiler options for C++ header check.

This commit is contained in:
Yosuke ONOUE 2012-09-22 21:20:57 +09:00
parent 127422c11e
commit c0676a74d9

View File

@ -108,6 +108,7 @@ function! SyntaxCheckers_cpp_GetLocList()
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
if exists('g:syntastic_cpp_check_header')
let makeprg = g:syntastic_cpp_compiler.' -c '.shellescape(expand('%')).
\ ' ' . g:syntastic_cpp_compiler_options.
\ ' ' . syntastic#c#GetIncludeDirs('cpp')
else
return []