Clang tools: check exit codes.

This commit is contained in:
LCD 47 2014-08-22 07:43:41 +03:00
parent 825b29a9be
commit 4cda4c3e0a
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,8 @@ function! SyntaxCheckers_c_clang_check_GetLocList() dict
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr('')} })
\ 'defaults': {'bufnr': bufnr('')},
\ 'returns': [0, 1] })
call self.setWantSort(1)

View File

@ -46,7 +46,8 @@ function! SyntaxCheckers_c_clang_tidy_GetLocList() dict
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr('')} })
\ 'defaults': {'bufnr': bufnr('')},
\ 'returns': [0, 1] })
call self.setWantSort(1)