forked from qt-creator/qt-creator
ProjectExplorer: Tighten the LdParser a bit
Just a hotfix. This parser is still much too eager, and a lot of unit tests only pass because it wrongly matches things that should be caught elsewhere. Fixes: QTCREATORBUG-25617 Change-Id: I91161a103b41239c3aac9e119c21e152b0437a32 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -116,7 +116,7 @@ Utils::OutputLineParser::Result LdParser::handleLine(const QString &line, Utils:
|
|||||||
}
|
}
|
||||||
|
|
||||||
match = m_regExpLinker.match(lne);
|
match = m_regExpLinker.match(lne);
|
||||||
if (match.hasMatch()) {
|
if (match.hasMatch() && lne.count(':') >= 2) {
|
||||||
bool ok;
|
bool ok;
|
||||||
int lineno = match.captured(7).toInt(&ok);
|
int lineno = match.captured(7).toInt(&ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|||||||
Reference in New Issue
Block a user