Fix #3317 - Parse -include from C flags

This commit is contained in:
w0rp
2020-08-27 13:05:50 +01:00
parent 66ff00c420
commit 17605777d6
2 changed files with 9 additions and 6 deletions

View File

@@ -133,6 +133,7 @@ function! ale#c#ParseCFlags(path_prefix, cflag_line) abort
\ || stridx(l:option, '-isystem') == 0
\ || stridx(l:option, '-idirafter') == 0
\ || stridx(l:option, '-iframework') == 0
\ || stridx(l:option, '-include') == 0
if stridx(l:option, '-I') == 0 && l:option isnot# '-I'
let l:arg = join(split(l:option, '\zs')[2:], '')
let l:option = '-I'