2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 Denis Shienkov <denis.shienkov@gmail.com>
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2019-05-07 14:25:21 +03:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/ioutputparser.h>
|
|
|
|
|
#include <projectexplorer/task.h>
|
|
|
|
|
|
2022-10-10 14:36:17 +02:00
|
|
|
namespace BareMetal::Internal {
|
2019-05-07 14:25:21 +03:00
|
|
|
|
2020-04-15 14:59:51 +02:00
|
|
|
class SdccParser final : public ProjectExplorer::OutputTaskParser
|
2019-05-07 14:25:21 +03:00
|
|
|
{
|
|
|
|
|
public:
|
2019-05-08 13:49:19 +03:00
|
|
|
explicit SdccParser();
|
2020-06-26 13:59:38 +02:00
|
|
|
static Utils::Id id();
|
2019-05-07 14:25:21 +03:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void newTask(const ProjectExplorer::Task &task);
|
|
|
|
|
void amendDescription(const QString &desc);
|
|
|
|
|
|
2020-04-16 13:53:05 +02:00
|
|
|
Result handleLine(const QString &line, Utils::OutputFormat type) final;
|
2020-04-15 14:59:51 +02:00
|
|
|
void flush() final;
|
2019-05-07 14:25:21 +03:00
|
|
|
|
|
|
|
|
ProjectExplorer::Task m_lastTask;
|
|
|
|
|
int m_lines = 0;
|
|
|
|
|
};
|
|
|
|
|
|
2022-10-10 14:36:17 +02:00
|
|
|
} // BareMetal::Internal
|