summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2012-09-24 15:25:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-13 15:47:27 +0200
commit2230e349df70d5840166cfdc0f44378106ff54dd (patch)
treed11c4c002a303dcce52306775af9fe39c1791c3c /src/tools
parentac8cab0cabb54815c315b7b19f531901a887f402 (diff)
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>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qdoc/location.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp
index 942fc0f70c..ceb5709aae 100644
--- a/src/tools/qdoc/location.cpp
+++ b/src/tools/qdoc/location.cpp
@@ -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;
}