Checkers clang_check and clang_tidy: workaround for a regression in Clang.
Set TERM to dumb to avoid the checkers producing colour codes in output.
This commit is contained in:
parent
721a42d5ba
commit
7d627000ce
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-31'
|
let g:_SYNTASTIC_VERSION = '3.7.0-32'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -43,9 +43,12 @@ function! SyntaxCheckers_c_clang_check_GetLocList() dict
|
|||||||
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
||||||
\ '%E%m'
|
\ '%E%m'
|
||||||
|
|
||||||
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'env': env,
|
||||||
\ 'defaults': {'bufnr': bufnr('')},
|
\ 'defaults': {'bufnr': bufnr('')},
|
||||||
\ 'returns': [0, 1] })
|
\ 'returns': [0, 1] })
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -43,9 +43,12 @@ function! SyntaxCheckers_c_clang_tidy_GetLocList() dict
|
|||||||
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
||||||
\ '%E%m'
|
\ '%E%m'
|
||||||
|
|
||||||
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'env': env,
|
||||||
\ 'defaults': {'bufnr': bufnr('')},
|
\ 'defaults': {'bufnr': bufnr('')},
|
||||||
\ 'returns': [0, 1] })
|
\ 'returns': [0, 1] })
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user