375
|
1 " Vim compiler file
|
|
2 " Compiler: GNU C Compiler
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
1213
|
4 " Latest Revision: 2006-12-20
|
375
|
5
|
|
6 if exists("current_compiler")
|
|
7 finish
|
|
8 endif
|
|
9 let current_compiler = "gcc"
|
|
10
|
|
11 let s:cpo_save = &cpo
|
|
12 set cpo-=C
|
|
13
|
389
|
14 setlocal errorformat=
|
375
|
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',
|
1213
|
23 \%D%*\\a:\ Entering\ directory\ `%f',
|
|
24 \%X%*\\a:\ Leaving\ directory\ `%f',
|
375
|
25 \%DMaking\ %*\\a\ in\ %f
|
|
26
|
1213
|
27 if exists('g:compiler_gcc_ignore_unmatched_lines')
|
|
28 let &errorformat .= ',%-G%.%#'
|
|
29 endif
|
|
30
|
375
|
31 let &cpo = s:cpo_save
|
|
32 unlet s:cpo_save
|