Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed compiler options for C++ header check. #361

Merged
merged 1 commit into from

3 participants

@likr

'g:syntastic_cpp_compiler_options' did not work when checking header file.
I fixed it.

@scrooloose
Owner

Hey, @kongo2002 is in charge of the c* checkers, so I will wait for his feedback on this :)

@kongo2002 kongo2002 merged commit c0676a7 into scrooloose:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 22, 2012
  1. @likr
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  syntax_checkers/cpp.vim
View
1  syntax_checkers/cpp.vim
@@ -108,6 +108,7 @@ function! SyntaxCheckers_cpp_GetLocList()
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
if exists('g:syntastic_cpp_check_header')
let makeprg = g:syntastic_cpp_compiler.' -c '.shellescape(expand('%')).
+ \ ' ' . g:syntastic_cpp_compiler_options.
\ ' ' . syntastic#c#GetIncludeDirs('cpp')
else
return []
Something went wrong with that request. Please try again.