diff options
author | Christian Kandeler <[email protected]> | 2020-04-08 09:42:51 +0200 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2020-04-08 09:31:33 +0000 |
commit | 98fb412e6e735184927f6d23e392566576904633 (patch) | |
tree | 61d09c935e67056306dfcc68723df8b6ad418f6c /src/plugins/qmakeprojectmanager/qmakeparser.cpp | |
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 <[email protected]>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeparser.cpp')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeparser.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeparser.cpp b/src/plugins/qmakeprojectmanager/qmakeparser.cpp index bbc711e9582..3952e591ec9 100644 --- a/src/plugins/qmakeprojectmanager/qmakeparser.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeparser.cpp @@ -40,8 +40,12 @@ QMakeParser::QMakeParser() : m_error(QLatin1String("^(.+):(\\d+):\\s(.+)$")) m_error.setMinimal(true); } -void QMakeParser::stdError(const QString &line) +void QMakeParser::handleLine(const QString &line, OutputFormat type) { + if (type != Utils::StdErrFormat) { + IOutputParser::handleLine(line, type); + return; + } QString lne = rightTrimmed(line); if (m_error.indexIn(lne) > -1) { QString fileName = m_error.cap(1); @@ -78,7 +82,7 @@ void QMakeParser::stdError(const QString &line) emit addTask(BuildSystemTask(Task::Warning, description), 1); return; } - IOutputParser::stdError(line); + IOutputParser::handleLine(line, StdErrFormat); } } // QmakeProjectManager |