Hi, the patch does not work.
Some problems:
- The error contains a comma at the end (\\,) or a colon :
This can be done by adding
%*[\\,:]
- I don't know if it is necessary to use the "from" lines.
I tried a few things in errorformats, but I could not get the desired
effect. I don't know if it is possible.
A shell console for a simple include chain would give
/opt/gcc-4.5/bin/g++ main.cpp
In file included from b.h:1:0,
from c.h:1,
from main.cpp:1:
a.h:4:1: error: ‘csdcsd’ does not name a type
make: *** [all] Error 1
The vim error console window.
|| /opt/gcc-4.5/bin/g++ main.cpp
|| from c.h:1,
|| from main.cpp:1:
a.h|4 col 1| error: ‘csdcsd’ does not name a type
|| make: *** [all] Error 1
I guess the accurate thing to do would be ignore but display the "In
file included" and "from" lines.
Bram Moolenaar wrote:
> Chris Indy wrote:
>
>
>> Here are some lines I added to my errorformat to ignore:
>> In file included from... with and without column.
>>
>> %-GIn\ file\ included\ from\ %f:%l:%c\\,
>> %-GIn\ file\ included\ from\ %f:%l\\,
>> %-Gfrom\ %f:%l\\,
>> %-Gfrom\ %f:%l:%c\\,
>>
>
> Please check if this patch works. I put the messages with :%c first,
> I'm not sure if that makes any difference.
>
> *** ../vim-7.2.296/src/option.h 2008-06-24 23:59:49.000000000 +0200
> --- src/option.h 2009-11-17 12:38:11.000000000 +0100
> ***************
> *** 33,39 ****
> # ifdef EBCDIC
> #define DFLT_EFM "%*[^ ] %*[^ ] %f:%l%*[ ]%m,%*[^\"]\"%f\"%*\\D%l:
> %m,\"%f\"%*\\D%l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line
> %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory `%f',%X%*\\a[%*\\d]:
> Leaving directory `%f',%DMaking %*\\a in %f,%f|%l| %m"
> # else
> ! #define DFLT_EFM "%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-G%f:%l:
> (Each undeclared identifier is reported only once,%-G%f:%l: for each function
> it appears in.),%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ]
> %m,%D%*\\a[%*\\d]: Entering directory `%f',%X%*\\a[%*\\d]: Leaving directory
> `%f',%D%*\\a: Entering directory `%f',%X%*\\a: Leaving directory
> `%f',%DMaking %*\\a in %f,%f|%l| %m"
> # endif
> # endif
> # endif
> --- 33,39 ----
> # ifdef EBCDIC
> #define DFLT_EFM "%*[^ ] %*[^ ] %f:%l%*[ ]%m,%*[^\"]\"%f\"%*\\D%l:
> %m,\"%f\"%*\\D%l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line
> %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory `%f',%X%*\\a[%*\\d]:
> Leaving directory `%f',%DMaking %*\\a in %f,%f|%l| %m"
> # else
> ! #define DFLT_EFM "%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-G%f:%l:
> (Each undeclared identifier is reported only once,%-G%f:%l: for each function
> it appears in.),%-GIn file included from %f:%l:%c,%-GIn file included from
> %f:%l,%-Gfrom %f:%l:%c,%-Gfrom %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\,
> line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory
> `%f',%X%*\\a[%*\\d]: Leaving directory `%f',%D%*\\a: Entering directory
> `%f',%X%*\\a: Leaving directory `%f',%DMaking %*\\a in %f,%f|%l| %m"
> # endif
> # endif
> # endif
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---