1" Vim compiler file
2" Compiler:         GNU C Compiler
3" Maintainer:       Nikolai Weibull <now@bitwi.se>
4" Latest Revision:  2010-05-30
5
6if exists("current_compiler")
7  finish
8endif
9let current_compiler = "gcc"
10
11let s:cpo_save = &cpo
12set cpo-=C
13
14CompilerSet 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:\ %terror:\ %m,
22      \%f:%l:%c:\ %tarning:\ %m,
23      \%f:%l:%c:\ %m,
24      \%f:%l:\ %terror:\ %m,
25      \%f:%l:\ %tarning:\ %m,
26      \%f:%l:\ %m,
27      \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
28      \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
29      \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
30      \%D%*\\a:\ Entering\ directory\ `%f',
31      \%X%*\\a:\ Leaving\ directory\ `%f',
32      \%DMaking\ %*\\a\ in\ %f
33
34if exists('g:compiler_gcc_ignore_unmatched_lines')
35  CompilerSet errorformat+=%-G%.%#
36endif
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40