This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
C: sparse
LCD 47 edited this page Jun 12, 2016
·
9 revisions
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: Daniel Walker [email protected]
Sparse is a semantic parser for C, see the official wiki for details.
The setting g:syntastic_sparse_config_file
allows you to define a file that
contains additional compiler arguments like include directories or CFLAGS. If
none is given the filename defaults to .syntastic_sparse_config
. This file
is expected to contain one sparse option per line.
If you're using sparse with gcc, you probably want to add something like this to your .vimrc:
let g:syntastic_c_sparse_post_args='-gcc-base-dir ' .
\ system("gcc -v 2>&1 | sed -n '/^Reading specs/ { s#.* /#/#; s#/[^/]*$##; p; }'")
This allows sparse to read gcc's private include files.