CMakeParser: Remove sub-parser setup from CMakeParser

This makes the class more applicable for later re-use.

Change-Id: Ic717dd63962b254fce639061f16b1ca8e12d8098
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-02-12 12:34:35 +01:00
parent d400959d7e
commit c7d906214b
2 changed files with 3 additions and 4 deletions

View File

@@ -35,6 +35,7 @@
#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/deployconfiguration.h>
#include <projectexplorer/gnumakeparser.h>
#include <projectexplorer/kitinformation.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/projectexplorer.h>
@@ -204,7 +205,8 @@ bool CMakeBuildStep::init(QList<const BuildStep *> &earlierSteps)
pp->setArguments(arguments);
pp->resolveAll();
setOutputParser(new CMakeParser());
setOutputParser(new CMakeParser);
appendOutputParser(new GnuMakeParser);
IOutputParser *parser = target()->kit()->createOutputParser();
if (parser)
appendOutputParser(parser);

View File

@@ -27,7 +27,6 @@
#include <utils/qtcassert.h>
#include <projectexplorer/gnumakeparser.h>
#include <projectexplorer/projectexplorerconstants.h>
using namespace CMakeProjectManager;
@@ -50,8 +49,6 @@ CMakeParser::CMakeParser()
m_locationLine.setPattern(QLatin1String(LOCATION_LINE_PATTERN));
QTC_CHECK(m_locationLine.isValid());
appendOutputParser(new GnuMakeParser());
}
void CMakeParser::stdError(const QString &line)