mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
fixed ProblemMarkerInfo ignoring position info
Change-Id: I0f580be35ac5abec8a2f9f1aadec71f24b46a5ae Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
parent
5d54cc3996
commit
e8bba9e7b2
2 changed files with 4 additions and 4 deletions
|
@ -87,8 +87,8 @@ public class ProblemMarkerInfo {
|
||||||
this.externalPath = null ;
|
this.externalPath = null ;
|
||||||
this.type = null;
|
this.type = null;
|
||||||
this.attributes = new HashMap<String, String>();
|
this.attributes = new HashMap<String, String>();
|
||||||
this.startChar = -1;
|
this.startChar = startChar;
|
||||||
this.endChar = -1;
|
this.endChar = endChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -125,8 +125,8 @@ public abstract class ACBuilder extends IncrementalProjectBuilder implements IMa
|
||||||
marker.setAttribute(IMarker.MESSAGE, problemMarkerInfo.description);
|
marker.setAttribute(IMarker.MESSAGE, problemMarkerInfo.description);
|
||||||
marker.setAttribute(IMarker.SEVERITY, mapMarkerSeverity(problemMarkerInfo.severity));
|
marker.setAttribute(IMarker.SEVERITY, mapMarkerSeverity(problemMarkerInfo.severity));
|
||||||
marker.setAttribute(IMarker.LINE_NUMBER, problemMarkerInfo.lineNumber);
|
marker.setAttribute(IMarker.LINE_NUMBER, problemMarkerInfo.lineNumber);
|
||||||
marker.setAttribute(IMarker.CHAR_START, -1);
|
marker.setAttribute(IMarker.CHAR_START, problemMarkerInfo.startChar);
|
||||||
marker.setAttribute(IMarker.CHAR_END, -1);
|
marker.setAttribute(IMarker.CHAR_END, problemMarkerInfo.endChar);
|
||||||
if (problemMarkerInfo.variableName != null) {
|
if (problemMarkerInfo.variableName != null) {
|
||||||
marker.setAttribute(ICModelMarker.C_MODEL_MARKER_VARIABLE, problemMarkerInfo.variableName);
|
marker.setAttribute(ICModelMarker.C_MODEL_MARKER_VARIABLE, problemMarkerInfo.variableName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue