Commit f529e22e authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

add tracing functionality to Tok{Return,Break,Next} handling

amends f53ed6c4

 after merge

Change-Id: Ib6b4881245b3d6dc160285954be3c3454291e4b4
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent e730e2bb
......@@ -683,8 +683,11 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::visitProBlock(
case TokNext:
ret = ReturnNext;
ctrlstm:
if (!m_skipLevel && okey != or_op)
if (!m_skipLevel && okey != or_op) {
traceMsg("flow control statement '%s', aborting block", dbgReturn(ret));
return ret;
}
traceMsg("skipped flow control statement '%s'", dbgReturn(ret));
okey = false, or_op = true; // force next evaluation
continue;
default: {
......
Markdown is supported
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