diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp index 605af2d5a58a69636ce77c9a929a435d2f1eee29..ddcf7b9d79d1ce4fb8cc83dd6f47264754f4b599 100644 --- a/src/plugins/projectexplorer/gccparser.cpp +++ b/src/plugins/projectexplorer/gccparser.cpp @@ -574,6 +574,16 @@ void ProjectExplorerPlugin::testGccOutputParsers_data() Constants::TASK_CATEGORY_COMPILE)) << QString(); + QTest::newRow("QTCREATORBUG-2206") + << QString::fromLatin1("../../../src/XmlUg/targetdelete.c: At top level:") + << OutputParserTester::STDERR + << QString() << QString() + << ( QList<ProjectExplorer::Task>() + << Task(Task::Unknown, + QLatin1String("At top level:"), + QLatin1String("../../../src/XmlUg/targetdelete.c"), -1, + Constants::TASK_CATEGORY_COMPILE)) + << QString(); } void ProjectExplorerPlugin::testGccOutputParsers() diff --git a/src/plugins/projectexplorer/ldparser.cpp b/src/plugins/projectexplorer/ldparser.cpp index cd18d401801c0204c02a0937d4e0412d06f9a4fc..3ca85d3e2265234080da17581f413ab09a1a74fb 100644 --- a/src/plugins/projectexplorer/ldparser.cpp +++ b/src/plugins/projectexplorer/ldparser.cpp @@ -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;