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

Este commit está contenido en:
roel0 2018-03-20 12:37:53 +01:00
padre 3fb7efa2c6
commit 38953c4626
Se han modificado 2 ficheros con 2 adiciones y 1 borrados

Ver fichero

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

Ver fichero

@ -12,7 +12,7 @@ endfunction
function! ale_linters#c#clang#GetCommand(buffer) abort
let l:cflags = []
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
if empty(l:cflags)
let l:cflags = ale#c#IncludeOptions(ale#c#FindLocalHeaderPaths(a:buffer))