Merge branch 'vim' into feat/float-point-ext
[vim_extended.git] / runtime / compiler / gcc.vim
bloba62415f6b27eb46299c892b714c0e7435208ae3d
1 " Vim compiler file
2 " Compiler:         GNU C Compiler
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2006-12-20
6 if exists("current_compiler")
7   finish
8 endif
9 let current_compiler = "gcc"
11 let s:cpo_save = &cpo
12 set cpo-=C
14 CompilerSet errorformat=
15       \%*[^\"]\"%f\"%*\\D%l:\ %m,
16       \\"%f\"%*\\D%l:\ %m,
17       \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
18       \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
19       \%f:%l:\ %m,
20       \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
21       \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
22       \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
23       \%D%*\\a:\ Entering\ directory\ `%f',
24       \%X%*\\a:\ Leaving\ directory\ `%f',
25       \%DMaking\ %*\\a\ in\ %f
27 if exists('g:compiler_gcc_ignore_unmatched_lines')
28   CompilerSet errorformat+=%-G%.%#
29 endif
31 let &cpo = s:cpo_save
32 unlet s:cpo_save