ExprEngine: ::

This commit is contained in:
Daniel Marjamäki 2019-10-23 18:23:25 +02:00
parent 7b50b76b89
commit bcfc0d32fe
1 changed files with 5 additions and 0 deletions

View File

@ -1128,6 +1128,11 @@ static ExprEngine::ValuePtr executeExpression1(const Token *tok, Data &data)
if (tok->str() == ".")
return executeDot(tok, data);
if (tok->str() == "::" && tok->hasKnownIntValue()) { // TODO handle :: better
auto v = tok->getKnownIntValue();
return std::make_shared<ExprEngine::IntRange>(std::to_string(v), v, v);
}
if (tok->astOperand1() && tok->astOperand2())
return executeBinaryOp(tok, data);