summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorawang <ts826848+github@gmail.com>2020-08-19 23:09:02 +0000
committerGitHub <noreply@github.com>2020-08-20 00:09:02 +0100
commit4d42ebc160d7cccd19c37ffe2ccb97752794be37 (patch)
treec5bc845943e548f7973ac772ce973cc007b92900 /autoload
parent90abb7e7efbb9d7cbd3bfcb2beceed08bb901ebe (diff)
downloadale-4d42ebc160d7cccd19c37ffe2ccb97752794be37.zip
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>
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/c.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim
index 0ec724b3..5cf4c690 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -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'