Hi,

For a while now, vim has been trying to open files with names like
"In file included from ..." after :make. I've added to efm to ignore
messages that seem to be new or changed (gcc 4.6.1).

    %*[ ]from %f:%l:%c
    %*[ ]from %f:%l

"from ..." include chains are indented to line up with the "In file
included from ..." line above them, so spaces should be matched as well.

    In file included from %f:%l:%c,
    %*[ ]from %f:%l:
    %*[ ]from %f:%l,

Trailing commas seem to be a new thing. "from ..." lines end with a
colon at the end of the chain as well.

Patch attached.

--Ben

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
# HG changeset patch
# User Ben Boeckel <[email protected]>
# Date 1316040940 14400
# Branch dev/improve-errorformat
# Node ID e1f68d3d86826f48d79f6a9600b6a7112ea5152c
# Parent  15b934a1664197ea570303f1c57cb1fc1f4d8a61
Improve errorformat to support more ignored lines

Fixes the following format strings:

    %*[ ]from %f:%l:%c
    %*[ ]from %f:%l

    ^^^^^ added

Adds the following format strings to ignore:

    In file included from %f:%l:%c,
    %*[ ]from %f:%l:
    %*[ ]from %f:%l,

diff --git a/src/option.h b/src/option.h
--- a/src/option.h
+++ b/src/option.h
@@ -33,7 +33,7 @@
 #     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:%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"
+#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:%c\\,,%-GIn file included from %f:%l:%c,%-GIn file included from 
%f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\\,,%-G%*[ 
]from %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

Raspunde prin e-mail lui