From a217b752ec5d47458aa9c5e4b185e911b4677fa0 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Mon, 12 Apr 2010 15:15:12 +0200 Subject: [PATCH] Need to parse those in the ld parser --- src/plugins/projectexplorer/ldparser.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/plugins/projectexplorer/ldparser.cpp b/src/plugins/projectexplorer/ldparser.cpp index 2ab0e541035..7f4f2f3689d 100644 --- a/src/plugins/projectexplorer/ldparser.cpp +++ b/src/plugins/projectexplorer/ldparser.cpp @@ -69,6 +69,21 @@ void LdParser::stdError(const QString &line) -1 /* linenumber */, Constants::TASK_CATEGORY_COMPILE)); return; + } else if (m_regExpGccNames.indexIn(lne) > -1) { + QString description = lne.mid(m_regExpGccNames.matchedLength()); + Task task(Task::Error, + description, + QString(), /* filename */ + -1, /* line */ + Constants::TASK_CATEGORY_COMPILE); + if (description.startsWith(QLatin1String("warning: "))) { + task.type = Task::Warning; + task.description = description.mid(9); + } else if (description.startsWith(QLatin1String("fatal: "))) { + task.description = description.mid(7); + } + emit addTask(task); + return; } else if (m_regExpLinker.indexIn(lne) > -1) { bool ok; int lineno = m_regExpLinker.cap(4).toInt(&ok); -- GitLab