Fix output parser misinterpreting "At top level:" messages

* Fix the GCC output parser misinterpreting "At top level" messages
   as Errors instead of a simple message.
 * Add unit test to cover this

Task-number: QTCREATORBUG-2202
This commit is contained in:
Tobias Hunger
2010-08-30 11:21:54 +02:00
parent fa53438f91
commit 7b7a974ee8
2 changed files with 11 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ void LdParser::stdError(const QString &line)
Constants::TASK_CATEGORY_COMPILE);
if (m_regExpInFunction.indexIn(description) > -1 ||
description.startsWith(QLatin1String("At global scope")) ||
description.startsWith(QLatin1String("At top level")) ||
description.startsWith(QLatin1String("instantiated from ")) ||
description.startsWith(QLatin1String("In ")))
task.type = Task::Unknown;