summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-01-12 12:09:30 +0000
committerGitHub <noreply@github.com>2018-01-12 12:09:30 +0000
commit5005871644e102120eee922718379cd992dfbfdf (patch)
treea957a60a4547e6ab99f763bf12d8ed868710870f /ale_linters
parent65fa901ef0c15a2cd8c17642b0c5f0108ed93585 (diff)
parent68d4a2216ca8edb7396f88352cfe807fa771ca7e (diff)
downloadale-5005871644e102120eee922718379cd992dfbfdf.zip
Merge pull request #1256 from jonatanolofsson/master
Fix #1255: Move extra clang-check args to before user options
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/cpp/clangcheck.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/cpp/clangcheck.vim b/ale_linters/cpp/clangcheck.vim
index 4b6169c8..a109d5d3 100644
--- a/ale_linters/cpp/clangcheck.vim
+++ b/ale_linters/cpp/clangcheck.vim
@@ -24,9 +24,9 @@ function! ale_linters#cpp#clangcheck#GetCommand(buffer) abort
" detected.
return ale#Escape(ale_linters#cpp#clangcheck#GetExecutable(a:buffer))
\ . ' -analyze %s'
+ \ . (empty(l:build_dir) ? ' -extra-arg -Xclang -extra-arg -analyzer-output=text' : '')
\ . (!empty(l:user_options) ? ' ' . l:user_options : '')
\ . (!empty(l:build_dir) ? ' -p ' . ale#Escape(l:build_dir) : '')
- \ . (empty(l:build_dir) ? ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text' : '')
endfunction
call ale#linter#Define('cpp', {