diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-04-08 09:42:51 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-04-08 09:31:33 +0000 |
commit | 98fb412e6e735184927f6d23e392566576904633 (patch) | |
tree | 61d09c935e67056306dfcc68723df8b6ad418f6c /src/plugins/projectexplorer/msvcparser.h | |
parent | ad1f79075dec8ed6b2e9da7eb250e8865214a88e (diff) |
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 <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/msvcparser.h')
-rw-r--r-- | src/plugins/projectexplorer/msvcparser.h | 14 |
1 files changed, 8 insertions, 6 deletions
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; |