1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

fixed ProblemMarkerInfo ignoring position info

Change-Id: I0f580be35ac5abec8a2f9f1aadec71f24b46a5ae
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
Alena Laskavaia 2015-08-13 11:48:20 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 5d54cc3996
commit e8bba9e7b2
2 changed files with 4 additions and 4 deletions

View file

@ -87,8 +87,8 @@ public class ProblemMarkerInfo {
this.externalPath = null ;
this.type = null;
this.attributes = new HashMap<String, String>();
this.startChar = -1;
this.endChar = -1;
this.startChar = startChar;
this.endChar = endChar;
}
/**

View file

@ -125,8 +125,8 @@ public abstract class ACBuilder extends IncrementalProjectBuilder implements IMa
marker.setAttribute(IMarker.MESSAGE, problemMarkerInfo.description);
marker.setAttribute(IMarker.SEVERITY, mapMarkerSeverity(problemMarkerInfo.severity));
marker.setAttribute(IMarker.LINE_NUMBER, problemMarkerInfo.lineNumber);
marker.setAttribute(IMarker.CHAR_START, -1);
marker.setAttribute(IMarker.CHAR_END, -1);
marker.setAttribute(IMarker.CHAR_START, problemMarkerInfo.startChar);
marker.setAttribute(IMarker.CHAR_END, problemMarkerInfo.endChar);
if (problemMarkerInfo.variableName != null) {
marker.setAttribute(ICModelMarker.C_MODEL_MARKER_VARIABLE, problemMarkerInfo.variableName);
}