summaryrefslogtreecommitdiff
path: root/ale_linters/c
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-25 20:34:23 +0100
committerw0rp <devw0rp@gmail.com>2017-06-25 20:34:23 +0100
commit8b557f346c5b528e1a309b17a5baf2d014c7276e (patch)
treeb0644d0c8fba5836cef6fdd273c12db354804840 /ale_linters/c
parent7f6e5dc65b9275d9a1a9905e11e990dc90b9e328 (diff)
downloadale-8b557f346c5b528e1a309b17a5baf2d014c7276e.zip
Move ale#handlers#c functions into ale#c
Diffstat (limited to 'ale_linters/c')
-rw-r--r--ale_linters/c/clang.vim4
-rw-r--r--ale_linters/c/gcc.vim4
2 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/c/clang.vim b/ale_linters/c/clang.vim
index ecfa5050..2cecc514 100644
--- a/ale_linters/c/clang.vim
+++ b/ale_linters/c/clang.vim
@@ -10,13 +10,13 @@ if !exists('g:ale_c_clang_options')
endif
function! ale_linters#c#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, 'c_clang_options') . ' -'
endfunction
diff --git a/ale_linters/c/gcc.vim b/ale_linters/c/gcc.vim
index bcf8017e..c988b30f 100644
--- a/ale_linters/c/gcc.vim
+++ b/ale_linters/c/gcc.vim
@@ -10,13 +10,13 @@ if !exists('g:ale_c_gcc_options')
endif
function! ale_linters#c#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, 'c_gcc_options') . ' -'
endfunction