From 98fb412e6e735184927f6d23e392566576904633 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 8 Apr 2020 09:42:51 +0200 Subject: IOutputParser: Replace std{Out,Err} with a single parameterized function Another step towards parser/formatter unification. Task-number: QTCREATORBUG-22665 Change-Id: I6de86b3aee2c54585cdd4b06d21b0ea67300aeac Reviewed-by: hjk --- src/plugins/projectexplorer/msvcparser.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/plugins/projectexplorer/msvcparser.h') diff --git a/src/plugins/projectexplorer/msvcparser.h b/src/plugins/projectexplorer/msvcparser.h index d06e176c58..bff487f9fb 100644 --- a/src/plugins/projectexplorer/msvcparser.h +++ b/src/plugins/projectexplorer/msvcparser.h @@ -40,13 +40,14 @@ class PROJECTEXPLORER_EXPORT MsvcParser : public ProjectExplorer::IOutputParser public: MsvcParser(); - void stdOutput(const QString &line) override; - void stdError(const QString &line) override; - static Core::Id id(); private: + void handleLine(const QString &line, Utils::OutputFormat type) override; void doFlush() override; + + void stdOutput(const QString &line); + void stdError(const QString &line); bool processCompileLine(const QString &line); QRegularExpression m_compileRegExp; @@ -63,12 +64,13 @@ class PROJECTEXPLORER_EXPORT ClangClParser : public ProjectExplorer::IOutputPar public: ClangClParser(); - void stdOutput(const QString &line) override; - void stdError(const QString &line) override; - private: + void handleLine(const QString &line, Utils::OutputFormat type) override; void doFlush() override; + void stdOutput(const QString &line); + void stdError(const QString &line); + const QRegularExpression m_compileRegExp; Task m_lastTask; int m_linkedLines = 0; -- cgit v1.2.3