ProjectExplorer: Do not look for compiler messages in LdParser

Task-number: QTCREATORBUG-25677
Change-Id: I33ff8adc1267a59787b0d7007a0733f649bfcec6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2021-05-07 10:57:24 +02:00
parent c262f40b67
commit a0e3f4bcc5
2 changed files with 2 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ GccParser::GccParser()
QTC_CHECK(m_regExp.isValid());
m_regExpScope.setPattern(QLatin1Char('^') + FILE_PATTERN
+ "(?:(\\d+):)?(\\d+:)?\\s+((?:In .*(?:function|constructor) .*|At global scope):)$");
+ "(?:(\\d+):)?(\\d+:)?\\s+((?:In .*(?:function|constructor) .*|At global scope|At top level):)$");
QTC_CHECK(m_regExpScope.isValid());
m_regExpIncluded.setPattern(QString::fromLatin1("\\bfrom\\s") + QLatin1String(FILE_PATTERN)

View File

@@ -133,11 +133,7 @@ Utils::OutputLineParser::Result LdParser::handleLine(const QString &line, Utils:
}
QString description = match.captured(8).trimmed();
Task::TaskType type = Task::Error;
if (description.startsWith(QLatin1String("At global scope")) ||
description.startsWith(QLatin1String("At top level")) ||
description.startsWith(QLatin1String("instantiated from ")) ||
description.startsWith(QLatin1String("In ")) ||
description.startsWith(QLatin1String("first defined here")) ||
if (description.startsWith(QLatin1String("first defined here")) ||
description.startsWith(QLatin1String("note:"), Qt::CaseInsensitive)) {
type = Task::Unknown;
} else if (description.startsWith(QLatin1String("warning: "), Qt::CaseInsensitive)) {