forked from qt-creator/qt-creator
Do not consider "In constructor foo" lines as errors
... in the ldparser.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user