#703 Add arguments to avoid generating plist files if no build directory is detected for clang-check

This commit is contained in:
w0rp
2017-07-17 10:19:08 +01:00
parent 3b1bc2bd13
commit eab77b7072
2 changed files with 15 additions and 3 deletions

View File

@@ -26,20 +26,28 @@ Execute(The executable should be configurable):
Execute(The executable should be used in the command):
AssertEqual
\ ale#Escape('clang-check') . ' -analyze %s',
\ ale#Escape('clang-check')
\ . ' -analyze %s'
\ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
let b:ale_cpp_clangcheck_executable = 'foobar'
" The extra arguments in the command are used to prevent .plist files from
" being generated.
AssertEqual
\ ale#Escape('foobar') . ' -analyze %s',
\ ale#Escape('foobar')
\ . ' -analyze %s'
\ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
Execute(The options should be configurable):
let b:ale_cpp_clangcheck_options = '--something'
AssertEqual
\ ale#Escape('clang-check') . ' -analyze %s --something',
\ ale#Escape('clang-check')
\ . ' -analyze %s --something'
\ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
Execute(The build directory should be used when set):