Tokenizer: operator handling, fix tests

This commit is contained in:
Daniel Marjamäki 2020-05-04 23:00:51 +02:00
parent 06cb0e99d1
commit 00d1091506
1 changed files with 1 additions and 1 deletions

View File

@ -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;