2017-07-16 16:37:10 -04:00
|
|
|
Before:
|
2018-07-29 14:24:19 -04:00
|
|
|
Save g:ale_c_parse_makefile
|
|
|
|
let g:ale_c_parse_makefile = 0
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('c', 'clang')
|
2017-07-16 16:37:10 -04:00
|
|
|
let b:command_tail = ' -S -x c -fsyntax-only -iquote'
|
|
|
|
\ . ' ' . ale#Escape(getcwd())
|
|
|
|
\ . ' -std=c11 -Wall -'
|
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! b:command_tail
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-16 16:37:10 -04:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
Execute(The executable should be configurable):
|
2019-04-07 09:58:06 -04:00
|
|
|
AssertLinter 'clang', [ale#Escape('clang') . b:command_tail]
|
2017-07-16 16:37:10 -04:00
|
|
|
|
|
|
|
let b:ale_c_clang_executable = 'foobar'
|
|
|
|
|
2019-04-07 09:58:06 -04:00
|
|
|
AssertLinter 'foobar', [ale#Escape('foobar') . b:command_tail]
|