Tokenizer: operator handling, fix tests
This commit is contained in:
parent
06cb0e99d1
commit
00d1091506
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue