From bcfc0d32fe3a4da3fcce8a558b7cc57c42f6ec7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 23 Oct 2019 18:23:25 +0200 Subject: [PATCH] ExprEngine: :: --- lib/exprengine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 43cb8e849..5c19108b3 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -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(std::to_string(v), v, v); + } + if (tok->astOperand1() && tok->astOperand2()) return executeBinaryOp(tok, data);