forked from qt-creator/qt-creator
don't ignore parsing errors in eval() and on the command line
to optimally support cumulative mode, the parser will happily return a bytecode object even when parsing failed, so errors must be treated later. Change-Id: I1a5c0ca9bf46a93d7359f590f0dd0ddc96baba0a Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
@@ -1128,9 +1128,11 @@ void QMakeEvaluator::visitCmdLine(const QString &cmds)
|
||||
{
|
||||
if (!cmds.isEmpty()) {
|
||||
if (ProFile *pro = m_parser->parsedProBlock(fL1S("(command line)"), cmds)) {
|
||||
m_locationStack.push(m_current);
|
||||
visitProBlock(pro, pro->tokPtr());
|
||||
m_current = m_locationStack.pop();
|
||||
if (pro->isOk()) {
|
||||
m_locationStack.push(m_current);
|
||||
visitProBlock(pro, pro->tokPtr());
|
||||
m_current = m_locationStack.pop();
|
||||
}
|
||||
pro->deref();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user