Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

C++: clang_check

LCD 47 edited this page Jun 12, 2016 · 5 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: Benjamin Bannier bbannier@gmail.com

ClangCheck is a wrapper around Clang's LibTooling. See the official page for details.

Checker options

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

Notes

By default you can set clang-check parameters in g:syntastic_cpp_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_cpp_clang_check_post_args to an empty string:

let g:syntastic_cpp_clang_check_post_args = ""

(configuration files pointed to by g:syntastic_clang_check_config_file are then ignored).

Clone this wiki locally