Clang parser shoud fallback on old method if parsing fails #1167

This commit is contained in:
roel0 2018-03-20 12:37:53 +01:00
parent 3fb7efa2c6
commit 38953c4626
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ RUN install_vim -tag v8.0.0027 -build \
ENV PACKAGES="\ ENV PACKAGES="\
bash \ bash \
git \ git \
make \
python \ python \
py-pip \ py-pip \
" "

View File

@ -12,7 +12,7 @@ endfunction
function! ale_linters#c#clang#GetCommand(buffer) abort function! ale_linters#c#clang#GetCommand(buffer) abort
let l:cflags = [] let l:cflags = []
if g:ale_c_clang_parse_makefile if g:ale_c_clang_parse_makefile
let l:cflags = join(ale#c#ParseMakefile(a:buffer), ' ') . ' ' let l:cflags = join(ale#c#ParseMakefile(a:buffer), ' ')
endif endif
if empty(l:cflags) if empty(l:cflags)
let l:cflags = ale#c#IncludeOptions(ale#c#FindLocalHeaderPaths(a:buffer)) let l:cflags = ale#c#IncludeOptions(ale#c#FindLocalHeaderPaths(a:buffer))