1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

bail out if the line does not match the pattern.

This commit is contained in:
Alain Magloire 2002-12-19 19:20:44 +00:00
parent efa4e2ca1d
commit e568ad331f

View file

@ -50,16 +50,8 @@ public class GCCErrorParser implements IErrorParser {
}
if (num == -1) {
// Maybe a bad option error or cc1(plus) error
if (fileName.startsWith("cc") || fileName.startsWith("gcc")
|| fileName.startsWith("qcc") || fileName.startsWith("QCC")) {
// do nothing;
if(line.indexOf("caught signal") != -1) {
// Bail out not recognizable format. i.e. no line numbers
return false;
}
} else {
return false;
}
} else {
/* Then check for the column */
int thirdColon= line.indexOf(':', secondColon + 1);