diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-20 12:57:41 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-20 12:57:41 +0100 |
commit | d012fd1f09c4ffb89130110fa37d4e10fb1c9b6b (patch) | |
tree | d7e7886c82941de65cb8c0b7f5e4d1ae63d5480a /autoload | |
parent | 0646b2861f2d41c694ad83c072255802d75ec705 (diff) | |
download | ale-d012fd1f09c4ffb89130110fa37d4e10fb1c9b6b.zip |
Revert "Fix #556 Remove duplicate error messages from clang++"
This reverts commit 164c4efb323f77e27942a824bd84fae91eb16db4.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/gcc.vim | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/autoload/ale/handlers/gcc.vim b/autoload/ale/handlers/gcc.vim index 09a1848d..eb42b27a 100644 --- a/autoload/ale/handlers/gcc.vim +++ b/autoload/ale/handlers/gcc.vim @@ -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 |