|
|
|
@ -17,6 +17,8 @@ Before:
|
|
|
|
|
let g:ale_c_parse_makefile = 0
|
|
|
|
|
|
|
|
|
|
After:
|
|
|
|
|
Restore
|
|
|
|
|
|
|
|
|
|
unlet! g:original_project_filenames
|
|
|
|
|
|
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
@ -28,7 +30,7 @@ Execute(The C GCC handler should include 'include' directories for projects with
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only'
|
|
|
|
|
\ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
@ -40,8 +42,8 @@ Execute(The C GCC handler should include 'include' directories for projects with
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -52,8 +54,8 @@ Execute(The C GCC handler should include root directories for projects with .h f
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -64,8 +66,8 @@ Execute(The C GCC handler should include root directories for projects with .hpp
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -76,8 +78,8 @@ Execute(The C Clang handler should include 'include' directories for projects wi
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang',
|
|
|
|
|
\ ale#Escape('clang')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -88,8 +90,8 @@ Execute(The C Clang handler should include 'include' directories for projects wi
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang',
|
|
|
|
|
\ ale#Escape('clang')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -100,8 +102,8 @@ Execute(The C Clang handler should include root directories for projects with .h
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang',
|
|
|
|
|
\ ale#Escape('clang')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -112,8 +114,8 @@ Execute(The C Clang handler should include root directories for projects with .h
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang',
|
|
|
|
|
\ ale#Escape('clang')
|
|
|
|
|
\ . ' -S -x c -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -124,8 +126,8 @@ Execute(The C++ GCC handler should include 'include' directories for projects wi
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -136,8 +138,8 @@ Execute(The C++ GCC handler should include 'include' directories for projects wi
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -148,8 +150,8 @@ Execute(The C++ GCC handler should include root directories for projects with .h
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -160,8 +162,8 @@ Execute(The C++ GCC handler should include root directories for projects with .h
|
|
|
|
|
|
|
|
|
|
AssertLinter 'gcc',
|
|
|
|
|
\ ale#Escape('gcc')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null')
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -172,8 +174,8 @@ Execute(The C++ Clang handler should include 'include' directories for projects
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang++',
|
|
|
|
|
\ ale#Escape('clang++')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -184,8 +186,8 @@ Execute(The C++ Clang handler should include 'include' directories for projects
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang++',
|
|
|
|
|
\ ale#Escape('clang++')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/include'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -196,8 +198,8 @@ Execute(The C++ Clang handler should include root directories for projects with
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang++',
|
|
|
|
|
\ ale#Escape('clang++')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
@ -208,8 +210,8 @@ Execute(The C++ Clang handler should include root directories for projects with
|
|
|
|
|
|
|
|
|
|
AssertLinter 'clang++',
|
|
|
|
|
\ ale#Escape('clang++')
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only '
|
|
|
|
|
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -S -x c++ -fsyntax-only'
|
|
|
|
|
\ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project/subdir'))
|
|
|
|
|
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project'))
|
|
|
|
|
\ . ' -'
|
|
|
|
|
|
|
|
|
|