1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-21 01:05:11 +01:00
vim/runtime/compiler/gcc.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.3 KiB
VimL
Raw Normal View History

2005-06-29 22:40:58 +00:00
" Vim compiler file
" Compiler: GNU C Compiler
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Last Change: 2010 Oct 14
" changed pattern for entering/leaving directories
" by Daniel Hahler, 2019 Jul 12
" added line suggested by Anton Lindqvist 2016 Mar 31
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
2005-06-29 22:40:58 +00:00
if exists("current_compiler")
finish
endif
let current_compiler = "gcc"
let s:cpo_save = &cpo
2011-12-30 13:11:27 +01:00
set cpo&vim
2005-06-29 22:40:58 +00:00
2008-06-24 21:56:24 +00:00
CompilerSet errorformat=
2010-01-06 20:54:52 +01:00
\%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
2005-06-29 22:40:58 +00:00
\%*[^\"]\"%f\"%*\\D%l:\ %m,
2010-01-06 20:54:52 +01:00
\\"%f\"%*\\D%l:%c:\ %m,
2005-06-29 22:40:58 +00:00
\\"%f\"%*\\D%l:\ %m,
\%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
\%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
\%f:%l:%c:\ %trror:\ %m,
\%f:%l:%c:\ %tarning:\ %m,
2010-01-06 20:54:52 +01:00
\%f:%l:%c:\ %m,
\%f:%l:\ %trror:\ %m,
\%f:%l:\ %tarning:\ %m,
2005-06-29 22:40:58 +00:00
\%f:%l:\ %m,
2016-04-10 01:31:25 +02:00
\%f:\\(%*[^\\)]\\):\ %m,
2005-06-29 22:40:58 +00:00
\\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
2019-07-13 23:04:31 +02:00
\%D%*\\a[%*\\d]:\ Entering\ directory\ %*[`']%f',
\%X%*\\a[%*\\d]:\ Leaving\ directory\ %*[`']%f',
\%D%*\\a:\ Entering\ directory\ %*[`']%f',
\%X%*\\a:\ Leaving\ directory\ %*[`']%f',
2005-06-29 22:40:58 +00:00
\%DMaking\ %*\\a\ in\ %f
2007-05-10 18:19:11 +00:00
if exists('g:compiler_gcc_ignore_unmatched_lines')
2008-06-24 21:56:24 +00:00
CompilerSet errorformat+=%-G%.%#
2007-05-10 18:19:11 +00:00
endif
2005-06-29 22:40:58 +00:00
let &cpo = s:cpo_save
unlet s:cpo_save