mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-30 22:55:30 +08:00
Clang parser shoud fallback on old method if parsing fails #1167
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user