@@ -347,7 +347,7 @@ void CheckThread::parseAddonErrors(QString err, const QString &tool)
347347 /*
348348 msg = { 'file': location.file,
349349 'linenr': location.linenr,
350- 'col ': location.col ,
350+ 'column ': location.column ,
351351 'severity': severity,
352352 'message': message,
353353 'addon': addon,
@@ -357,14 +357,13 @@ void CheckThread::parseAddonErrors(QString err, const QString &tool)
357357
358358 const std::string &filename = obj[" file" ].toString ().toStdString ();
359359 const int lineNumber = obj[" linenr" ].toInt ();
360- const int column = obj[" col " ].toInt ();
360+ const int column = obj[" column " ].toInt ();
361361 const std::string severity = obj[" severity" ].toString ().toStdString ();
362362 const std::string message = obj[" message" ].toString ().toStdString ();
363363 const std::string id = (obj[" addon" ].toString () + " -" + obj[" errorId" ].toString ()).toStdString ();
364364
365365 std::list<ErrorLogger::ErrorMessage::FileLocation> callstack;
366- callstack.push_back (ErrorLogger::ErrorMessage::FileLocation (filename, lineNumber));
367- callstack.back ().col = column;
366+ callstack.push_back (ErrorLogger::ErrorMessage::FileLocation (filename, lineNumber, column));
368367 ErrorLogger::ErrorMessage errmsg (callstack, filename, Severity::fromString (severity), message, id, false );
369368
370369 if (isSuppressed (errmsg.toSuppressionsErrorMessage ()))
@@ -387,9 +386,9 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
387386 if (line.startsWith (" Assertion failed:" )) {
388387 ErrorItem e;
389388 e.errorPath .append (QErrorPathItem ());
390- e.errorPath .last ().file = file0;
391- e.errorPath .last ().line = 1 ;
392- e.errorPath .last ().col = 1 ;
389+ e.errorPath .last ().file = file0;
390+ e.errorPath .last ().line = 1 ;
391+ e.errorPath .last ().column = 1 ;
393392 e.errorId = tool + " -internal-error" ;
394393 e.file0 = file0;
395394 e.message = line;
@@ -409,7 +408,7 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
409408 errorItem.errorPath .append (QErrorPathItem ());
410409 errorItem.errorPath .last ().file = r1.cap (1 );
411410 errorItem.errorPath .last ().line = r1.cap (2 ).toInt ();
412- errorItem.errorPath .last ().col = r1.cap (3 ).toInt ();
411+ errorItem.errorPath .last ().column = r1.cap (3 ).toInt ();
413412 if (r1.cap (4 ) == " warning" )
414413 errorItem.severity = Severity::SeverityType::warning;
415414 else if (r1.cap (4 ) == " error" || r1.cap (4 ) == " fatal error" )
@@ -461,7 +460,7 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
461460
462461 std::list<ErrorLogger::ErrorMessage::FileLocation> callstack;
463462 foreach (const QErrorPathItem &path, e.errorPath ) {
464- callstack.push_back (ErrorLogger::ErrorMessage::FileLocation (path.file .toStdString (), path.info .toStdString (), path.line ));
463+ callstack.push_back (ErrorLogger::ErrorMessage::FileLocation (path.file .toStdString (), path.info .toStdString (), path.line , path. column ));
465464 }
466465 const std::string f0 = file0.toStdString ();
467466 const std::string msg = e.message .toStdString ();
0 commit comments