properly parse c++ errors that contain col nums
This commit is contained in:
parent
f416158a35
commit
34c05863df
@ -26,7 +26,7 @@ endif
|
|||||||
|
|
||||||
function! SyntaxCheckers_cpp_GetLocList()
|
function! SyntaxCheckers_cpp_GetLocList()
|
||||||
let makeprg = 'g++ -fsyntax-only '.shellescape(expand('%'))
|
let makeprg = 'g++ -fsyntax-only '.shellescape(expand('%'))
|
||||||
let errorformat = '%-G%f:%s:,%f:%l: %m'
|
let errorformat = '%-G%f:%s:,%f:%l:%c: %m,%f:%l: %m'
|
||||||
|
|
||||||
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
|
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
|
||||||
if exists('g:syntastic_cpp_check_header')
|
if exists('g:syntastic_cpp_check_header')
|
||||||
|
Loading…
Reference in New Issue
Block a user