aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/gnumakeparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/gnumakeparser.h')
-rw-r--r--src/plugins/projectexplorer/gnumakeparser.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/plugins/projectexplorer/gnumakeparser.h b/src/plugins/projectexplorer/gnumakeparser.h
index e509a7881a..21c77213b1 100644
--- a/src/plugins/projectexplorer/gnumakeparser.h
+++ b/src/plugins/projectexplorer/gnumakeparser.h
@@ -32,35 +32,24 @@
namespace ProjectExplorer {
-class PROJECTEXPLORER_EXPORT GnuMakeParser : public ProjectExplorer::IOutputParser
+class PROJECTEXPLORER_EXPORT GnuMakeParser : public ProjectExplorer::OutputTaskParser
{
Q_OBJECT
public:
explicit GnuMakeParser();
- void stdOutput(const QString &line) override;
- void stdError(const QString &line) override;
-
- void setWorkingDirectory(const QString &workingDirectory) override;
-
- QStringList searchDirectories() const;
-
+private:
+ Result handleLine(const QString &line, Utils::OutputFormat type) override;
bool hasFatalErrors() const override;
- void taskAdded(const ProjectExplorer::Task &task, int linkedLines, int skippedLines) override;
-
-private:
- void addDirectory(const QString &dir);
- void removeDirectory(const QString &dir);
+ void emitTask(const ProjectExplorer::Task &task);
QRegularExpression m_makeDir;
QRegularExpression m_makeLine;
QRegularExpression m_threeStarError;
QRegularExpression m_errorInMakefile;
- QStringList m_directories;
-
bool m_suppressIssues = false;
int m_fatalErrorCount = 0;
@@ -79,7 +68,7 @@ public:
explicit GnuMakeParserTester(GnuMakeParser *parser, QObject *parent = nullptr);
void parserIsAboutToBeDeleted();
- QStringList directories;
+ Utils::FilePaths directories;
GnuMakeParser *parser;
};
#endif