diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-25 20:34:23 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-25 20:34:23 +0100 |
commit | 8b557f346c5b528e1a309b17a5baf2d014c7276e (patch) | |
tree | b0644d0c8fba5836cef6fdd273c12db354804840 /ale_linters/cpp | |
parent | 7f6e5dc65b9275d9a1a9905e11e990dc90b9e328 (diff) | |
download | ale-8b557f346c5b528e1a309b17a5baf2d014c7276e.zip |
Move ale#handlers#c functions into ale#c
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r-- | ale_linters/cpp/clang.vim | 4 | ||||
-rw-r--r-- | ale_linters/cpp/gcc.vim | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/cpp/clang.vim b/ale_linters/cpp/clang.vim index 953c8a71..f70101d3 100644 --- a/ale_linters/cpp/clang.vim +++ b/ale_linters/cpp/clang.vim @@ -7,13 +7,13 @@ if !exists('g:ale_cpp_clang_options') endif function! ale_linters#cpp#clang#GetCommand(buffer) abort - let l:paths = ale#handlers#c#FindLocalHeaderPaths(a:buffer) + let l:paths = ale#c#FindLocalHeaderPaths(a:buffer) " -iquote with the directory the file is in makes #include work for " headers in the same directory. return 'clang++ -S -x c++ -fsyntax-only ' \ . '-iquote ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:h')) . ' ' - \ . ale#handlers#c#IncludeOptions(l:paths) + \ . ale#c#IncludeOptions(l:paths) \ . ale#Var(a:buffer, 'cpp_clang_options') . ' -' endfunction diff --git a/ale_linters/cpp/gcc.vim b/ale_linters/cpp/gcc.vim index 36e958e7..69b69e4f 100644 --- a/ale_linters/cpp/gcc.vim +++ b/ale_linters/cpp/gcc.vim @@ -17,13 +17,13 @@ if !exists('g:ale_cpp_gcc_options') endif function! ale_linters#cpp#gcc#GetCommand(buffer) abort - let l:paths = ale#handlers#c#FindLocalHeaderPaths(a:buffer) + let l:paths = ale#c#FindLocalHeaderPaths(a:buffer) " -iquote with the directory the file is in makes #include work for " headers in the same directory. return 'gcc -S -x c++ -fsyntax-only ' \ . '-iquote ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:h')) . ' ' - \ . ale#handlers#c#IncludeOptions(l:paths) + \ . ale#c#IncludeOptions(l:paths) \ . ale#Var(a:buffer, 'cpp_gcc_options') . ' -' endfunction |