Commit 6a7cefbd authored by Tobias Hunger's avatar Tobias Hunger
Browse files

OutputParser: Use AnsiFilterParser



Use AnsiFilterParser to make sure ANSI sequences will not confuse
our parsers.

Task-number: QTCREATORBUG-8610
Change-Id: I9711ec417a6439e8f3e1c560d2caca605ac55504
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent f12dbf60
......@@ -28,6 +28,7 @@
****************************************************************************/
#include "abstractprocessstep.h"
#include "ansifilterparser.h"
#include "buildconfiguration.h"
#include "buildstep.h"
#include "ioutputparser.h"
......@@ -120,12 +121,13 @@ AbstractProcessStep::~AbstractProcessStep()
void AbstractProcessStep::setOutputParser(ProjectExplorer::IOutputParser *parser)
{
delete m_outputParserChain;
m_outputParserChain = parser;
m_outputParserChain = new AnsiFilterParser;
m_outputParserChain->appendOutputParser(parser);
if (m_outputParserChain) {
connect(parser, SIGNAL(addOutput(QString,ProjectExplorer::BuildStep::OutputFormat)),
connect(m_outputParserChain, SIGNAL(addOutput(QString,ProjectExplorer::BuildStep::OutputFormat)),
this, SLOT(outputAdded(QString,ProjectExplorer::BuildStep::OutputFormat)));
connect(parser, SIGNAL(addTask(ProjectExplorer::Task)),
connect(m_outputParserChain, SIGNAL(addTask(ProjectExplorer::Task)),
this, SLOT(taskAdded(ProjectExplorer::Task)));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment