d280dc78ea
These checkers use an existing compilation database so that the actual flags used in the compile are used in the check.
15 lines
350 B
VimL
15 lines
350 B
VimL
if exists("g:loaded_syntastic_cpp_clang_tidy_checker")
|
|
finish
|
|
endif
|
|
let g:loaded_syntastic_cpp_clang_tidy_checker = 1
|
|
|
|
runtime! syntax_checkers/c/*.vim
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|
\ 'filetype': 'cpp',
|
|
\ 'name': 'clang_tidy',
|
|
\ 'exec': 'clang-tidy',
|
|
\ 'redirect': 'c/clang_tidy'})
|
|
|
|
" vim: set et sts=4 sw=4:
|