From 1f3f8f6f204d76764140aef18df82b0f15aa2379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 3 Aug 2017 20:33:01 +0200 Subject: [PATCH] GUI: Minor fixes in the Clang parser --- gui/checkthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 1c1095300..42869f55f 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -214,12 +214,12 @@ void CheckThread::parseClangErrors(QString err) QTextStream in(&err, QIODevice::ReadOnly); while (!in.atEnd()) { QString line = in.readLine(); - QRegExp r("([^:]+):([0-9]+):[0-9]+: (warning|error): (.*)"); + QRegExp r("([^:]+):([0-9]+):[0-9]+: (warning|error|fatal error): (.*)"); if (!r.exactMatch(line)) continue; const std::string filename = r.cap(1).toStdString(); const int lineNumber = r.cap(2).toInt(); - Severity::SeverityType severity = (r.cap(3) == "error") ? Severity::error : Severity::warning; + Severity::SeverityType severity = (r.cap(3) == "warning") ? Severity::warning : Severity::error; const std::string message = r.cap(4).toStdString(); const std::string id = "clang"; std::list callstack;