Minor cleanup.
This commit is contained in:
parent
56528e877e
commit
7c638f6f70
@ -56,7 +56,7 @@ function! syntastic#c#ReadConfig(file)
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'), ' ')
|
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" GetLocList() for C-like compilers
|
" GetLocList() for C-like compilers
|
||||||
@ -178,7 +178,7 @@ function! s:GetIncludeDirs(filetype)
|
|||||||
call extend(include_dirs, g:syntastic_{a:filetype}_include_dirs)
|
call extend(include_dirs, g:syntastic_{a:filetype}_include_dirs)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'), ' ')
|
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" search the first 100 lines for include statements that are
|
" search the first 100 lines for include statements that are
|
||||||
|
@ -27,7 +27,7 @@ function! g:SyntasticMakeprgBuilder.New(checker, exe, args, fname, post_args, ta
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! g:SyntasticMakeprgBuilder.makeprg()
|
function! g:SyntasticMakeprgBuilder.makeprg()
|
||||||
return join([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()])
|
return join(filter([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()], '!empty(v:val)'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! g:SyntasticMakeprgBuilder.exe()
|
function! g:SyntasticMakeprgBuilder.exe()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user