Do not consider "In constructor foo" lines as errors

... in the ldparser.
This commit is contained in:
Tobias Hunger
2010-04-16 12:41:38 +02:00
parent b370804b01
commit 61b3a7beb8
2 changed files with 12 additions and 1 deletions

View File

@@ -438,6 +438,17 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
QLatin1String("main.cpp"), 10,
Constants::TASK_CATEGORY_COMPILE))
<< QString();
QTest::newRow("In constructor")
<< QString::fromLatin1("/dev/creator/src/plugins/find/basetextfind.h: In constructor 'Find::BaseTextFind::BaseTextFind(QTextEdit*)':")
<< OutputParserTester::STDERR
<< QString() << QString()
<< ( QList<ProjectExplorer::Task>()
<< Task(Task::Unknown,
QLatin1String("In constructor 'Find::BaseTextFind::BaseTextFind(QTextEdit*)':"),
QLatin1String("/dev/creator/src/plugins/find/basetextfind.h"), -1,
Constants::TASK_CATEGORY_COMPILE))
<< QString();
QTest::newRow("At global scope")
<< QString::fromLatin1("../../scriptbug/main.cpp: At global scope:\n"
"../../scriptbug/main.cpp: In instantiation of void bar(i) [with i = double]:\n"

View File

@@ -98,7 +98,7 @@ void LdParser::stdError(const QString &line)
if (m_regExpInFunction.indexIn(description) > -1 ||
description.startsWith(QLatin1String("At global scope")) ||
description.startsWith(QLatin1String("instantiated from ")) ||
description.startsWith(QLatin1String("In instantiation of ")))
description.startsWith(QLatin1String("In ")))
task.type = Task::Unknown;
emit addTask(task);