diff options
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r-- | ale_linters/cpp/clangtidy.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ale_linters/cpp/clangtidy.vim b/ale_linters/cpp/clangtidy.vim new file mode 100644 index 00000000..ef7c63e8 --- /dev/null +++ b/ale_linters/cpp/clangtidy.vim @@ -0,0 +1,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', +\}) |