blob: a62415f6b27eb46299c892b714c0e7435208ae3d [file] [log] [blame]
Bram Moolenaar42eeac32005-06-29 22:40:58 +00001" Vim compiler file
2" Compiler: GNU C Compiler
Bram Moolenaar57657d82006-04-21 22:12:41 +00003" Maintainer: Nikolai Weibull <now@bitwi.se>
Bram Moolenaar2c7a7632007-05-10 18:19:11 +00004" Latest Revision: 2006-12-20
Bram Moolenaar42eeac32005-06-29 22:40:58 +00005
6if exists("current_compiler")
7 finish
8endif
9let current_compiler = "gcc"
10
Bram Moolenaar42eeac32005-06-29 22:40:58 +000011let s:cpo_save = &cpo
12set cpo-=C
13
Bram Moolenaar446cb832008-06-24 21:56:24 +000014CompilerSet errorformat=
Bram Moolenaar42eeac32005-06-29 22:40:58 +000015 \%*[^\"]\"%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',
Bram Moolenaar2c7a7632007-05-10 18:19:11 +000023 \%D%*\\a:\ Entering\ directory\ `%f',
24 \%X%*\\a:\ Leaving\ directory\ `%f',
Bram Moolenaar42eeac32005-06-29 22:40:58 +000025 \%DMaking\ %*\\a\ in\ %f
26
Bram Moolenaar2c7a7632007-05-10 18:19:11 +000027if exists('g:compiler_gcc_ignore_unmatched_lines')
Bram Moolenaar446cb832008-06-24 21:56:24 +000028 CompilerSet errorformat+=%-G%.%#
Bram Moolenaar2c7a7632007-05-10 18:19:11 +000029endif
30
Bram Moolenaar42eeac32005-06-29 22:40:58 +000031let &cpo = s:cpo_save
32unlet s:cpo_save