1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

2004-11-11 Alain Magloire

PR 78570, patch from Brad Jarvinen
	The default VC error parser understands (<line number>) but doesn't understand
	(<line number>, <column>), which is also a valid VC error output format.
	* src/org/eclipse/cdt/internal/errorparser/VCErroParser.java
This commit is contained in:
Alain Magloire 2004-11-12 23:35:25 +00:00
parent 4cd3ad7c88
commit 4cc2406abf
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-11-11 Alain Magloire
PR 78570, patch from Brad Jarvinen
The default VC error parser understands (<line number>) but doesn't understand
(<line number>, <column>), which is also a valid VC error output format.
* src/org/eclipse/cdt/internal/errorparser/VCErroParser.java
2004-11-10 Alain Magloire
Typo in method IBinaryParser.ISymbol
* src/org/eclipse/cdt/core/IBinaryParser.java

View file

@ -38,8 +38,13 @@ public class VCErrorParser implements IErrorParser {
if (tok.hasMoreTokens()) {
String fileName = tok.nextToken();
if (tok.hasMoreTokens()) {
// Line number can either be ### or ###,##
String lineNumber = tok.nextToken();
try {
int firstComma = lineNumber.indexOf(',');
if (firstComma != -1) {
lineNumber = lineNumber.substring(0, firstComma);
}
int num = Integer.parseInt(lineNumber);
int i = fileName.lastIndexOf(File.separatorChar);
if (i != -1) {