summaryrefslogtreecommitdiff
path: root/ale_linters/cpp
diff options
context:
space:
mode:
authorJonatan Olofsson <jonatan.olofsson@gmail.com>2018-01-01 12:02:32 +0100
committerJonatan Olofsson <jonatan.olofsson@gmail.com>2018-01-02 16:09:38 +0100
commitff8d4c5286ff3d290b155a554289075afc653b8c (patch)
treef73ef62fe45e6443ccc640bacc39b32700550cb9 /ale_linters/cpp
parent5285b0b332f067f56a6ac13a316db64acbac0c6b (diff)
downloadale-ff8d4c5286ff3d290b155a554289075afc653b8c.zip
Fix #1255: Move extra clang-check args to before user options
Diffstat (limited to 'ale_linters/cpp')
-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', {