forked from qt-creator/qt-creator
QmlJS checks: Add severity and unique id to messages.
Change-Id: I2cded26524c3f64152107e65d740658e3003ffac Reviewed-on: http://codereview.qt-project.org/5790 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -87,6 +87,14 @@ static QList<ProjectExplorer::Task> convertToTasks(const QList<DiagnosticMessage
|
||||
return result;
|
||||
}
|
||||
|
||||
static QList<ProjectExplorer::Task> convertToTasks(const QList<StaticAnalysis::Message> &messages, const QString &fileName, const QString &category)
|
||||
{
|
||||
QList<DiagnosticMessage> diagnostics;
|
||||
foreach (const StaticAnalysis::Message &msg, messages)
|
||||
diagnostics += msg.toDiagnosticMessage();
|
||||
return convertToTasks(diagnostics, fileName, category);
|
||||
}
|
||||
|
||||
void QmlTaskManager::collectMessages(
|
||||
QFutureInterface<FileErrorMessages> &future,
|
||||
Snapshot snapshot, QList<ModelManagerInterface::ProjectInfo> projectInfos,
|
||||
|
||||
Reference in New Issue
Block a user