2017-07-16 20:37:10 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('cpp', 'clang')
|
2017-07-16 20:37:10 +00:00
|
|
|
let b:command_tail = ' -S -x c++ -fsyntax-only -iquote'
|
|
|
|
\ . ' ' . ale#Escape(getcwd())
|
|
|
|
\ . ' -std=c++14 -Wall -'
|
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! b:command_tail
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-16 20:37:10 +00:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'clang++', ale#Escape('clang++') . b:command_tail
|
2017-07-16 20:37:10 +00:00
|
|
|
|
|
|
|
let b:ale_cpp_clang_executable = 'foobar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . b:command_tail
|