Use default includes only with the C-like checkers.
This commit is contained in:
parent
5e196e67c5
commit
f9c30c3215
@ -152,7 +152,9 @@ endfunction
|
|||||||
function! s:GetIncludeDirs(filetype)
|
function! s:GetIncludeDirs(filetype)
|
||||||
let include_dirs = []
|
let include_dirs = []
|
||||||
|
|
||||||
if !exists('g:syntastic_'.a:filetype.'_no_default_include_dirs') || !g:syntastic_{a:filetype}_no_default_include_dirs
|
if a:filetype =~# '\v^%(c|cpp|d|objc|objcpp)$' &&
|
||||||
|
\ (!exists('g:syntastic_'.a:filetype.'_no_default_include_dirs') ||
|
||||||
|
\ !g:syntastic_{a:filetype}_no_default_include_dirs)
|
||||||
let include_dirs = copy(s:default_includes)
|
let include_dirs = copy(s:default_includes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user