-
Notifications
You must be signed in to change notification settings - Fork 1.1k
(v3.6.0) C: clang_tidy
Maintainer: Benjamin Bannier [email protected]
Clang-Tidy is a lint tool based on Clang. See the project's page for details.
Clang-Tidy is part of the Clang project, but it isn't built by default. You need to enable compilation of the Extra Clang Tools to get it. See the build tutorial for details.
- g:syntastic_clang_tidy_config_file (string; default: '.syntastic_clang_tidy_config')
- file containing compilation flags (such as defines or include directories), one option per line
By default you can set clang-tidy parameters in g:syntastic_c_clang_tidy_args
,
and compilation parameters (defines, optimisation flags, etc.) in the configuration file.
If you want clang-tidy to use compilation databases (perhaps
generated by CMake or Build EAR) rather than pass compilation flags
explicitly, set g:syntastic_c_clang_tidy_post_args
to an empty string:
let g:syntastic_c_clang_tidy_post_args = ""
(configuration files pointed to by g:syntastic_clang_tidy_config_file
are then ignored).