ProjectExplorer: Split up the IOutputParser class

For symmetry with Utils::OutputFormatter.

Task-number: QTCREATORBUG-22665
Change-Id: I148fed69dba042ad3ef26e080829c31cd3f357fd
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-04-15 14:59:51 +02:00
parent d04597f2aa
commit 6f32538c5d
76 changed files with 345 additions and 311 deletions

View File

@@ -51,7 +51,7 @@ void JavaParser::setSourceDirectory(const Utils::FilePath &sourceDirectory)
m_sourceDirectory = sourceDirectory;
}
IOutputParser::Status JavaParser::doHandleLine(const QString &line, Utils::OutputFormat type)
OutputTaskParser::Status JavaParser::handleLine(const QString &line, Utils::OutputFormat type)
{
Q_UNUSED(type);
if (m_javaRegExp.indexIn(line) == -1)

View File

@@ -33,7 +33,7 @@
namespace Android {
namespace Internal {
class JavaParser : public ProjectExplorer::IOutputParser
class JavaParser : public ProjectExplorer::OutputTaskParser
{
Q_OBJECT
@@ -45,7 +45,7 @@ public:
void setSourceDirectory(const Utils::FilePath &sourceDirectory);
private:
Status doHandleLine(const QString &line, Utils::OutputFormat type) override;
Status handleLine(const QString &line, Utils::OutputFormat type) override;
QRegExp m_javaRegExp;
QStringList m_fileList;