aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/syntastic/syntax_checkers/cuda
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/syntastic/syntax_checkers/cuda
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/syntastic/syntax_checkers/cuda')
m---------vim/bundle/syntastic0
-rw-r--r--vim/bundle/syntastic/syntax_checkers/cuda/nvcc.vim81
2 files changed, 0 insertions, 81 deletions
diff --git a/vim/bundle/syntastic b/vim/bundle/syntastic
new file mode 160000
+Subproject cee74e0c1af934065fd1b3046e53cda76574f70
diff --git a/vim/bundle/syntastic/syntax_checkers/cuda/nvcc.vim b/vim/bundle/syntastic/syntax_checkers/cuda/nvcc.vim
deleted file mode 100644
index 3476039..0000000
--- a/vim/bundle/syntastic/syntax_checkers/cuda/nvcc.vim
+++ /dev/null
@@ -1,81 +0,0 @@
-"============================================================================
-"File: cuda.vim
-"Description: Syntax checking plugin for syntastic
-"Author: Hannes Schulz <schulz at ais dot uni-bonn dot de>
-"
-"============================================================================
-
-if exists('g:loaded_syntastic_cuda_nvcc_checker')
- finish
-endif
-let g:loaded_syntastic_cuda_nvcc_checker = 1
-
-if !exists('g:syntastic_cuda_config_file')
- let g:syntastic_cuda_config_file = '.syntastic_cuda_config'
-endif
-
-let s:save_cpo = &cpo
-set cpo&vim
-
-function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
- let arch_flag = syntastic#util#var('cuda_arch')
- if arch_flag !=# ''
- let arch_flag = '-arch=' . arch_flag
- call syntastic#log#oneTimeWarn('variable g:syntastic_cuda_arch is deprecated, ' .
- \ 'please add ' . string(arch_flag) . ' to g:syntastic_cuda_nvcc_args instead')
- endif
-
- let build_opts = {}
- let dummy = ''
- if index(['h', 'hpp', 'cuh'], expand('%:e', 1), 0, 1) >= 0
- if syntastic#util#var('cuda_check_header', 0)
- let dummy = expand('%:p:h', 1) . syntastic#util#Slash() . '.syntastic_dummy.cu'
- let build_opts = {
- \ 'exe_before': 'echo > ' . syntastic#util#shescape(dummy) . ' ;',
- \ 'fname_before': '.syntastic_dummy.cu -include' }
- else
- return []
- endif
- endif
-
- call extend(build_opts, {
- \ 'args_before': arch_flag . ' --cuda -O0 -I .',
- \ 'args': syntastic#c#ReadConfig(g:syntastic_cuda_config_file),
- \ 'args_after': '-Xcompiler -fsyntax-only',
- \ 'tail_after': syntastic#c#NullOutput() })
-
- let makeprg = self.makeprgBuild(build_opts)
-
- let errorformat =
- \ '%*[^"]"%f"%*\D%l: %m,'.
- \ '"%f"%*\D%l: %m,'.
- \ '%-G%f:%l: (Each undeclared identifier is reported only once,'.
- \ '%-G%f:%l: for each function it appears in.),'.
- \ '%f:%l:%c:%m,'.
- \ '%f(%l):%m,'.
- \ '%f:%l:%m,'.
- \ '"%f"\, line %l%*\D%c%*[^ ] %m,'.
- \ '%D%*\a[%*\d]: Entering directory `%f'','.
- \ '%X%*\a[%*\d]: Leaving directory `%f'','.
- \ '%D%*\a: Entering directory `%f'','.
- \ '%X%*\a: Leaving directory `%f'','.
- \ '%DMaking %*\a in %f,'.
- \ '%f|%l| %m'
-
- let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
-
- if dummy !=# ''
- call delete(dummy)
- endif
-
- return loclist
-endfunction
-
-call g:SyntasticRegistry.CreateAndRegisterChecker({
- \ 'filetype': 'cuda',
- \ 'name': 'nvcc'})
-
-let &cpo = s:save_cpo
-unlet s:save_cpo
-
-" vim: set sw=4 sts=4 et fdm=marker: