From f78e9d634f9c1177031d4bdeda93f98d63b6bc12 Mon Sep 17 00:00:00 2001 From: javad Date: Thu, 9 Feb 2023 05:19:24 +0330 Subject: Add support for llvm-mc as an assembly linter (#4446) --- test/linter/test_llvm_mc.vader | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/linter/test_llvm_mc.vader (limited to 'test/linter/test_llvm_mc.vader') diff --git a/test/linter/test_llvm_mc.vader b/test/linter/test_llvm_mc.vader new file mode 100644 index 00000000..6d896b26 --- /dev/null +++ b/test/linter/test_llvm_mc.vader @@ -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 -- cgit v1.2.3