From 7b408a9a7ae86ecac3b4bff518104924e59bacf5 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 22 Apr 2021 15:00:40 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/ldparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/ldparser.cpp b/src/plugins/projectexplorer/ldparser.cpp index 325e123b513..afbdf985aa2 100644 --- a/src/plugins/projectexplorer/ldparser.cpp +++ b/src/plugins/projectexplorer/ldparser.cpp @@ -116,7 +116,7 @@ Utils::OutputLineParser::Result LdParser::handleLine(const QString &line, Utils: } match = m_regExpLinker.match(lne); - if (match.hasMatch()) { + if (match.hasMatch() && lne.count(':') >= 2) { bool ok; int lineno = match.captured(7).toInt(&ok); if (!ok)