1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +02:00

VC Error Parser. Make sure we are picking up fatal errors.

This commit is contained in:
Doug Schaefer 2006-12-18 15:27:55 +00:00
parent 453382eb2c
commit 630d74d362

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class VCErrorParser extends AbstractErrorParser { public class VCErrorParser extends AbstractErrorParser {
private static final ErrorPattern[] patterns = { private static final ErrorPattern[] patterns = {
new ErrorPattern("(.+?)(\\(([0-9]+)\\))? : (error|warning) (.*)", 1, 3, 5, 0, 0) { new ErrorPattern("(.+?)(\\(([0-9]+)\\))? : (fatal error|error|warning) (.*)", 1, 3, 5, 0, 0) {
public int getSeverity(Matcher matcher) { public int getSeverity(Matcher matcher) {
return "error".equals(matcher.group(4)) return "warning".equals(matcher.group(4))
? IMarkerGenerator.SEVERITY_ERROR_RESOURCE ? IMarkerGenerator.SEVERITY_WARNING
: IMarkerGenerator.SEVERITY_WARNING; : IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
} }
} }
}; };