forked from qt-creator/qt-creator
Fix issues type with ldparser.
Sometime, in the most general case, the message is a warning, and not an error. Two cases: * linker returning a message like this: 'filename: warning: description' * uic returns messages like this: 'Warning: description' Change-Id: I2babe1de2753ea8b2871419f1b1405eb7ae73d48 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
7986fbd08d
commit
6f085665cf
@@ -106,6 +106,10 @@ void LdParser::stdError(const QString &line)
|
||||
description.startsWith(QLatin1String("instantiated from ")) ||
|
||||
description.startsWith(QLatin1String("In ")))
|
||||
task.type = Task::Unknown;
|
||||
if (description.startsWith(QLatin1String("warning: "), Qt::CaseInsensitive)) {
|
||||
task.type = Task::Warning;
|
||||
task.description = description.mid(9);
|
||||
}
|
||||
|
||||
emit addTask(task);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user