Skip to content

Commit 710e1aa

Browse files
authored
fix linter cppcheck (#5071)
1 parent 281eb48 commit 710e1aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/ale/handlers/cppcheck.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ function! ale#handlers#cppcheck#HandleCppCheckFormat(buffer, lines) abort
6969
"test.c:1:16: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-2.7]\'
7070
"void test( int parm ) {}
7171
" ^
72-
let l:pattern = '\v(\f+):(\d+):(\d+|\{column\}): (\w+):(\{inconclusive:inconclusive\})? ?(.*) \[(%(\w[-.]?)+)\]\'
72+
let l:pattern = '\v(\f+):(\d+):(\d+|\{column\}): (\w+):(\{inconclusive:inconclusive\})? ?(.*) \[(%(\w[-.]?)+)\]\\?'
7373
let l:output = []
7474

7575
for l:match in ale#util#GetMatches(a:lines, l:pattern)
7676
if ale#path#IsBufferPath(a:buffer, l:match[1])
77+
let l:text = substitute(l:match[6], '\\$', '', '')
7778
call add(l:output, {
7879
\ 'lnum': str2nr(l:match[2]),
7980
\ 'col': match(l:match[3],'{column}') >= 0 ? 1 : str2nr(l:match[3]),

0 commit comments

Comments
 (0)