Commit 61b3a7be authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Do not consider "In constructor foo" lines as errors

... in the ldparser.
parent b370804b
......@@ -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"
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment