mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
Set GCC flags appropriately for older versions
This commit is contained in:
@@ -26,6 +26,18 @@ function! s:RemoveUnicodeQuotes(text) abort
|
||||
return l:text
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#gcc#ParseGCCVersion(lines) abort
|
||||
for l:line in a:lines
|
||||
let l:match = matchstr(l:line, '\d\.\d\.\d')
|
||||
|
||||
if !empty(l:match)
|
||||
return ale#semver#Parse(l:match)
|
||||
endif
|
||||
endfor
|
||||
|
||||
return []
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#gcc#HandleGCCFormat(buffer, lines) abort
|
||||
let l:include_pattern = '\v^(In file included | *)from ([^:]*):(\d+)'
|
||||
let l:include_lnum = 0
|
||||
|
||||
Reference in New Issue
Block a user