Remove bitwise-or abuse
This commit is contained in:
parent
19f770e41b
commit
7017b051fe
|
@ -7831,7 +7831,7 @@ void Tokenizer::simplifyEnum()
|
||||||
const Token *prev = tok2->previous();
|
const Token *prev = tok2->previous();
|
||||||
bool type = false;
|
bool type = false;
|
||||||
while (prev && (prev->isName() || Token::Match(prev, "*|&|::"))) {
|
while (prev && (prev->isName() || Token::Match(prev, "*|&|::"))) {
|
||||||
type |= (Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return"));
|
type = type || ((Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return")));
|
||||||
prev = prev->previous();
|
prev = prev->previous();
|
||||||
}
|
}
|
||||||
if (type && (!prev || Token::Match(prev, "[;{}]"))) {
|
if (type && (!prev || Token::Match(prev, "[;{}]"))) {
|
||||||
|
|
Loading…
Reference in New Issue