Revert "Fix #556 Remove duplicate error messages from clang++"

This reverts commit 164c4efb32.
This commit is contained in:
w0rp
2017-05-20 12:57:41 +01:00
parent 0646b2861f
commit d012fd1f09
2 changed files with 2 additions and 33 deletions

View File

@@ -99,17 +99,12 @@ function! ale#handlers#gcc#HandleGCCFormat(buffer, lines) abort
continue
endif
let l:obj = {
call add(l:output, {
\ 'lnum': l:match[2] + 0,
\ 'col': l:match[3] + 0,
\ 'type': l:match[4] =~# 'error' ? 'E' : 'W',
\ 'text': s:RemoveUnicodeQuotes(l:match[5]),
\}
" clang++ and some other tools can output duplicated errors.
if empty(l:output) || l:output[-1] != l:obj
call add(l:output, l:obj)
endif
\})
endif
endfor