From 00d1091506ec0af639d3e424ad10bb094d9c23ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 4 May 2020 23:00:51 +0200 Subject: [PATCH] Tokenizer: operator handling, fix tests --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 94e44608b..f61ad1360 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -11080,7 +11080,7 @@ void Tokenizer::simplifyOperatorName() if (tok->str() != "operator") continue; // operator op - if (Token::Match(tok, "operator %op% (")) { + if (Token::Match(tok, "operator %op% (") && !operatorEnd(tok->linkAt(2))) { tok->str(tok->str() + tok->next()->str()); tok->deleteNext(); continue;