summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeparser.h')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeparser.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeparser.h b/src/plugins/cmakeprojectmanager/cmakeparser.h
index 57b41ce559..b0cfc6f55a 100644
--- a/src/plugins/cmakeprojectmanager/cmakeparser.h
+++ b/src/plugins/cmakeprojectmanager/cmakeparser.h
@@ -30,25 +30,26 @@
#include <projectexplorer/ioutputparser.h>
#include <projectexplorer/task.h>
+#include <utils/optional.h>
+
#include <QDir>
#include <QRegExp>
#include <QRegularExpression>
namespace CMakeProjectManager {
-class CMAKE_EXPORT CMakeParser : public ProjectExplorer::IOutputParser
+class CMAKE_EXPORT CMakeParser : public ProjectExplorer::OutputTaskParser
{
Q_OBJECT
public:
explicit CMakeParser();
void setSourceDirectory(const QString &sourceDir);
- void stdError(const QString &line) override;
-
-protected:
- void doFlush() override;
private:
+ Result handleLine(const QString &line, Utils::OutputFormat type) override;
+ void flush() override;
+
enum TripleLineError { NONE, LINE_LOCATION, LINE_DESCRIPTION, LINE_DESCRIPTION2 };
TripleLineError m_expectTripleLineErrorData = NONE;