Add support for llvm-mc as an assembly linter (#4446)

This commit is contained in:
javad
2023-02-09 05:19:24 +03:30
committed by GitHub
parent ae2d47ba83
commit f78e9d634f
7 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Before:
call ale#assert#SetUpLinterTest('asm', 'llvm_mc')
call ale#test#SetFilename('test.cpp')
let b:command_tail = ' --assemble'
\ . ' --filetype=asm'
\ . ' -o ' . (has('win32') ? 'nul': '/dev/null')
\ . ' '
After:
unlet! b:command_tail
call ale#assert#TearDownLinterTest()
Execute(The executable should be configurable):
AssertLinter 'llvm-mc', ale#Escape('llvm-mc') . b:command_tail
let b:ale_asm_llvm_mc_executable = 'foobar'
AssertLinter 'foobar', ale#Escape('foobar') . b:command_tail