-
Notifications
You must be signed in to change notification settings - Fork 1.1k
C: clang_check
Maintainer: Benjamin Bannier [email protected]
ClangCheck is a wrapper around Clang's LibTooling. See the official page for details.
- g:syntastic_clang_check_config_file (string; default: '.syntastic_clang_check_config')
- file containing compilation flags (such as defines or include directories), one option per line
By default you can set clang-check parameters in g:syntastic_c_clang_check_args
,
and compilation parameters (defines, optimisation flags, etc.) in the configuration file.
If you want clang-check to use compilation databases (perhaps
generated by CMake or Build EAR) rather than pass compilation flags
explicitly, set g:syntastic_c_clang_check_post_args
to an empty string:
let g:syntastic_c_clang_check_post_args = ""
(configuration files pointed to by g:syntastic_clang_check_config_file
are then ignored).
Should the compilation database be located in a directory separate from
the source tree, then you can pass the -p=PATH
option. If the compile
commands contain -fcolor-diagnostics
, then these must be turned off
or you will get no diagnostics:
let g:syntastic_c_clang_check_post_args = "-p=/tmp/builddir -extra-arg=-fno-color-diagnostics"