mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 296966: [error parser] [patch] Fixes for GNU ld error parsing
Convert GLDErrorParser to RegexErrorParser
This commit is contained in:
parent
23d7d1e99f
commit
75a36f0c5e
4 changed files with 30 additions and 42 deletions
|
@ -184,9 +184,37 @@
|
|||
name="%CDTGNULinkerErrorParser.name"
|
||||
point="org.eclipse.cdt.core.ErrorParser">
|
||||
<errorparser
|
||||
class="org.eclipse.cdt.core.errorparsers.RegexErrorParser"
|
||||
id="org.eclipse.cdt.core.GLDErrorParser"
|
||||
name="%CDTGNULinkerErrorParser.name"
|
||||
class="org.eclipse.cdt.internal.errorparsers.GLDErrorParser">
|
||||
name="%CDTGNULinkerErrorParser.name">
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
eat-processed-line="true"
|
||||
file-expr="$1"
|
||||
line-expr=""
|
||||
regex="(.*)\(\.text\+.*\): [Ww]arning:? (.*)"
|
||||
severity="Warning"/>
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
eat-processed-line="true"
|
||||
file-expr="$1"
|
||||
line-expr=""
|
||||
regex="(.*?):?\(\.\w+\+.*\): (.*)"
|
||||
severity="Error"/>
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
eat-processed-line="true"
|
||||
file-expr=""
|
||||
line-expr=""
|
||||
regex="ld(\.exe)?: [Ww]arning:? (.*)"
|
||||
severity="Warning"/>
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
eat-processed-line="true"
|
||||
file-expr=""
|
||||
line-expr=""
|
||||
regex="ld(\.exe)?: (.*)"
|
||||
severity="Error"/>
|
||||
</errorparser>
|
||||
</extension>
|
||||
<extension
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* 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
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
* Norbert Ploett (Siemens AG) - externalized strings
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.errorparsers;
|
||||
|
||||
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||
import org.eclipse.cdt.core.errorparsers.AbstractErrorParser;
|
||||
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
|
||||
};
|
||||
|
||||
public GLDErrorParser() {
|
||||
super(patterns);
|
||||
}
|
||||
|
||||
}
|
|
@ -23,10 +23,6 @@ public class Messages extends NLS {
|
|||
public static String GCCErrorParser_varPattern_parseError;
|
||||
public static String GCCErrorParser_varPattern_undeclared;
|
||||
public static String GCCErrorParser_Warnings;
|
||||
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);
|
||||
|
|
|
@ -17,7 +17,3 @@ 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=(.*?):?\\(\\.\\w+\\+.*\\): (.*)
|
||||
GLDErrorParser_warning_general=ld(\\.exe)?: [Ww]arning:? (.*)
|
||||
GLDErrorParser_error_general=ld(\\.exe)?: (.*)
|
||||
|
|
Loading…
Add table
Reference in a new issue