Tokenizer::combineOperators: prevent duplicate checking of same condition
This commit is contained in:
parent
66676b8e55
commit
4e4a1cfe3a
|
@ -1911,19 +1911,15 @@ void Tokenizer::combineOperators()
|
|||
tok->deleteNext();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
else if (tok->str() == ">>" && tok->next()->str() == "=") {
|
||||
} else if (tok->next()->str() == "=") {
|
||||
if (tok->str() == ">>") {
|
||||
tok->str(">>=");
|
||||
tok->deleteNext();
|
||||
}
|
||||
|
||||
else if (tok->str() == "<<" && tok->next()->str() == "=") {
|
||||
} else if (tok->str() == "<<") {
|
||||
tok->str("<<=");
|
||||
tok->deleteNext();
|
||||
}
|
||||
|
||||
else if ((c1 == 'p' || c1 == '_') && tok->next()->str() == ":" && tok->strAt(2) != ":") {
|
||||
} else if ((c1 == 'p' || c1 == '_') && tok->next()->str() == ":" && tok->strAt(2) != ":") {
|
||||
if (Token::Match(tok, "private|protected|public|__published")) {
|
||||
tok->str(tok->str() + ":");
|
||||
tok->deleteNext();
|
||||
|
|
Loading…
Reference in New Issue