summaryrefslogtreecommitdiff
path: root/ale_linters/cpp/clangtidy.vim
blob: ef7c63e81abcf7f04cd7235b18d698f490df5c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Author: vdeurzen <tim@kompiler.org>
" Description: clang-tidy linter for cpp files

" Set this option to change the clang-tidy options for warnings for C.
if !exists('g:ale_cpp_clangtidy_options')
    let g:ale_cpp_clangtidy_options = '-std=c++14 -Wall'
endif

call ale#linter#Define('cpp', {
\   'name': 'clangtidy',
\   'output_stream': 'stdout',
\   'executable': 'clang-tidy',
\   'command': g:ale#util#stdin_wrapper . ' -- ' . g:ale_cpp_clangtidy_options,
\   'callback': 'ale#handlers#HandleGCCFormat',
\})