qdoc: Enable prepare-phase warnings in single-exec mode

In single-exec mode, QDoc must never skip documentation warnings
as there is no subsequent QDoc run to re-execute the same code
paths (in generate phase) that generate warnings.

Change-Id: I8da2f16cfb12b3b3509249d1c9941d63733176a9
Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
Topi Reinio 2015-05-05 13:51:16 +02:00 committed by Topi Reiniö
parent 934e14127b
commit 7c6b6876aa

View File

@ -256,7 +256,7 @@ QString Location::canonicalRelativePath(const QString &path)
*/
void Location::warning(const QString& message, const QString& details) const
{
if (!Generator::preparing())
if (!Generator::preparing() || Generator::singleExec())
emitMessage(Warning, message, details);
}
@ -267,7 +267,7 @@ void Location::warning(const QString& message, const QString& details) const
*/
void Location::error(const QString& message, const QString& details) const
{
if (!Generator::preparing())
if (!Generator::preparing() || Generator::singleExec())
emitMessage(Error, message, details);
}