1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 75078: [Error Parser] Compilation Warnings are interpreted as Errors

Patch from Christian W. Damus
This commit is contained in:
Andrew Gvozdev 2009-11-16 22:34:22 +00:00
parent 4b81040dd2
commit 3b31890d4e
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2005, 2008 IBM Corporation and others.
* Copyright (c) 2005, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -19,6 +19,7 @@ import org.eclipse.cdt.core.errorparsers.ErrorPattern;
public class GLDErrorParser extends AbstractErrorParser {
private static final ErrorPattern[] patterns = {
new ErrorPattern(Messages.GLDErrorParser_warning_text, 1, 0, 2, 0, IMarkerGenerator.SEVERITY_WARNING), //$NON-NLS-1
new ErrorPattern(Messages.GLDErrorParser_error_text, 1, 0, 2, 0, IMarkerGenerator.SEVERITY_ERROR_RESOURCE), //$NON-NLS-1
new ErrorPattern(Messages.GLDErrorParser_warning_general, 2, IMarkerGenerator.SEVERITY_WARNING), //$NON-NLS-1
new ErrorPattern(Messages.GLDErrorParser_error_general, 2, IMarkerGenerator.SEVERITY_ERROR_RESOURCE) //$NON-NLS-1

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2008 Siemens AG.
* Copyright (c) 2006, 2009 Siemens AG and others.
* All rights reserved. This content and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -26,6 +26,7 @@ public class Messages extends NLS {
public static String GLDErrorParser_error_general;
public static String GLDErrorParser_error_text;
public static String GLDErrorParser_warning_general;
public static String GLDErrorParser_warning_text;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);

View file

@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2006, 2008 Siemens AG.
# Copyright (c) 2006, 2009 Siemens AG and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@ -17,6 +17,7 @@ GCCErrorParser_skip_forEachFunction=for each function it appears in.\\)
GCCErrorParser_skip_note=: note:
GCCErrorParser_sikp_instantiatedFromHere=instantiated from
GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?(.*?[([Ww]arning)(WARNING)([Ee]rror)(ERROR)]:)? (.*)
GLDErrorParser_warning_text=(.*)\\(\\.text\\+.*\\): [Ww]arning:? (.*)
GLDErrorParser_error_text=(.*)\\(\\.text\\+.*\\): (.*)
GLDErrorParser_warning_general=ld(\\.exe)?: [Ww]arning:? (.*)
GLDErrorParser_error_general=ld(\\.exe)?: (.*)