forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user