mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-01 18:12:16 +08:00
Keep -iframework if present in parsed C/C++ flags (#3057)
* Keep -iframework if present in parsed C/C++ flags * Add test to make sure -iframework is parsed Co-authored-by: Alex Wang <ts826848@gmail.com>
This commit is contained in:
1 parent
90abb7e7ef
commit
4d42ebc160
2 files changed
+3
-1
No files matched your search
@@ -132,6 +132,7 @@ function! ale#c#ParseCFlags(path_prefix, cflag_line) abort
|
||||
\ || stridx(l:option, '-iquote') == 0
|
||||
\ || stridx(l:option, '-isystem') == 0
|
||||
\ || stridx(l:option, '-idirafter') == 0
|
||||
\ || stridx(l:option, '-iframework') == 0
|
||||
if stridx(l:option, '-I') == 0 && l:option isnot# '-I'
|
||||
let l:arg = join(split(l:option, '\zs')[2:], '')
|
||||
let l:option = '-I'
|
||||
|
||||
Reference in new issue
Block a user