Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / compiler / gcc.vim
blob75c596c7ef4a2f3d3077e0ddc0ef347e8042c5c0
1 " Vim compiler file
2 " Compiler:         GNU C Compiler
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2009-05-01
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:%c:\ %m,
16       \%*[^\"]\"%f\"%*\\D%l:\ %m,
17       \\"%f\"%*\\D%l:%c:\ %m,
18       \\"%f\"%*\\D%l:\ %m,
19       \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
20       \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
21       \%f:%l:%c:\ %m,
22       \%f:%l:\ %m,
23       \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
24       \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
25       \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
26       \%D%*\\a:\ Entering\ directory\ `%f',
27       \%X%*\\a:\ Leaving\ directory\ `%f',
28       \%DMaking\ %*\\a\ in\ %f
30 if exists('g:compiler_gcc_ignore_unmatched_lines')
31   CompilerSet errorformat+=%-G%.%#
32 endif
34 let &cpo = s:cpo_save
35 unlet s:cpo_save