qdoc outputs warnings in a form which Creator will recognize
Recently Creator started recognzing the warnings from qdoc, however because warnings are not labeleled with " warning: ", there is no yellow-triangle symbol in the Issues list. This patch makes the output look the same as warnings or errors that come from gcc. Change-Id: I895a656d22ce8b59da90c58b86a444c86c8edf84 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
ac8cab0cab
commit
2230e349df
@ -360,7 +360,9 @@ void Location::emitMessage(MessageType type,
|
||||
result += "\n[" + details + QLatin1Char(']');
|
||||
result.replace("\n", "\n ");
|
||||
if (type == Error)
|
||||
result.prepend(tr("error: "));
|
||||
result.prepend(tr(": error: "));
|
||||
else if (type == Warning)
|
||||
result.prepend(tr(": warning: "));
|
||||
result.prepend(toString());
|
||||
fprintf(stderr, "%s\n", result.toLatin1().data());
|
||||
fflush(stderr);
|
||||
@ -397,7 +399,6 @@ QString Location::toString() const
|
||||
}
|
||||
str += top();
|
||||
}
|
||||
str += QLatin1String(": ");
|
||||
return str;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user