mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 00:35:49 +02:00
VC Error Parser. Make sure we are picking up fatal errors.
This commit is contained in:
parent
453382eb2c
commit
630d74d362
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue