summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoel Brunnen <mb@lee-brunnen.de>2020-11-03 23:06:14 +0100
committerManoel Brunnen <mb@lee-brunnen.de>2020-11-03 23:10:15 +0100
commit96d84159469dfc28bde82bacfa1c3bc81b0cbdfa (patch)
tree51ff47a1db71b9d9d8d54424893a812409754a53
parent557a1ed5da70cb443a8650766f4e8ea95e8c0da3 (diff)
downloadale-96d84159469dfc28bde82bacfa1c3bc81b0cbdfa.zip
Add -imacros to C flags
-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 cff53125..c7b1e20a 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -152,6 +152,7 @@ function! ale#c#ParseCFlags(path_prefix, should_quote, raw_arguments) abort
\ || stridx(l:option, '-idirafter') == 0
\ || stridx(l:option, '-iframework') == 0
\ || stridx(l:option, '-include') == 0
+ \ || stridx(l:option, '-imacros') == 0
if stridx(l:option, '-I') == 0 && l:option isnot# '-I'
let l:arg = join(split(l:option, '\zs')[2:], '')
let l:option = '-I'