can I use gcc and clang linter differently? #4156
Unanswered
laoshaw
asked this question in
Q&A - Ask for help with problems
Replies: 1 comment 1 reply
|
From the help it seems that setting |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
when I work with c or c++ file I noticed ALEInfo shows "Linter Aliases: 'cc' -> ['gcc', 'clang']", and "Enabled Linters:['cc']", how can I use just one of them(be it gcc or clang) but not both? is it do-able? I tried to set : "let g:ale_linters={'c': ['gcc']}" but it always insists on "cc" which consists of gcc and clang.
The reason is that I use gcc, and some of its flags(e.g. -fanalyzer) is not supported by clang.
All reactions