1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 12:05:21 +02:00

2004-07-17 Brad Jarvinen.

Fix Pr 70252

	* src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java
This commit is contained in:
Alain Magloire 2004-07-16 18:41:56 +00:00
parent 9626e24875
commit 1872f0173d
2 changed files with 28 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-07-17 Brad Jarvinen.
Fix Pr 70252
* src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java
2004-07-06 Alain Magloire 2004-07-06 Alain Magloire
Fix PR 69199 Fix PR 69199

View file

@ -24,13 +24,17 @@ public class GCCErrorParser implements IErrorParser {
// (b) // (b)
// filename:lineno:column: description // filename:lineno:column: description
// //
// (b) // (c)
// In file included from b.h:2, // In file included from b.h:2,
// from a.h:3, // from a.h:3,
// from hello.c:3: // from hello.c:3:
// c.h:2:15: missing ')' in macro parameter list // c.h:2:15: missing ')' in macro parameter list
// //
// (c) // (d)
// In file included from hello.c:3:
// c.h:2:15: missing ')' in macro parameter list
//
// (e)
// h.c: In function `main': // h.c: In function `main':
// h.c:41: `foo' undeclared (first use in this function) // h.c:41: `foo' undeclared (first use in this function)
// h.c:41: (Each undeclared identifier is reported only once // h.c:41: (Each undeclared identifier is reported only once
@ -149,6 +153,21 @@ public class GCCErrorParser implements IErrorParser {
} }
} }
/*
* In file included from hello.c:3:
* c.h:2:15: missing ')' in macro parameter list
*
* We reconstruct the multiline gcc errors to multiple errors:
* c.h:2:15: missing ')' in macro parameter list
* hello.c:3: in inclusion c.h:2:15
*
*/
if (line.startsWith("In file included from ")) { //$NON-NLS-1$
// We want the last error in the chain, so continue.
eoParser.appendToScratchBuffer(line);
return false;
}
/* /*
* In file included from b.h:2, * In file included from b.h:2,
* from a.h:3, * from a.h:3,
@ -156,7 +175,7 @@ public class GCCErrorParser implements IErrorParser {
* c.h:2:15: missing ')' in macro parameter list * c.h:2:15: missing ')' in macro parameter list
* *
* We reconstruct the multiline gcc errors to multiple errors: * We reconstruct the multiline gcc errors to multiple errors:
* c.h:3:15: missing ')' in macro parameter list * c.h:2:15: missing ')' in macro parameter list
* b.h:2: in inclusion c.h:3:15 * b.h:2: in inclusion c.h:3:15
* a.h:3: in inclusion b.h:2 * a.h:3: in inclusion b.h:2
* hello.c:3: in inclusion a.h:3 * hello.c:3: in inclusion a.h:3