Simplify condition
This commit is contained in:
parent
382f21a5c9
commit
6bc13080ee
|
@ -9631,9 +9631,7 @@ void Tokenizer::findGarbageCode() const
|
||||||
if (Token::simpleMatch(tok->next(), "( )"))
|
if (Token::simpleMatch(tok->next(), "( )"))
|
||||||
code = tok->str() + "()";
|
code = tok->str() + "()";
|
||||||
if (!code.empty()) {
|
if (!code.empty()) {
|
||||||
if (isC())
|
if (isC() || (tok->str() != ">" && !Token::simpleMatch(tok->previous(), "operator")))
|
||||||
syntaxError(tok, code);
|
|
||||||
if (tok->str() != ">" && !Token::simpleMatch(tok->previous(), "operator"))
|
|
||||||
syntaxError(tok, code);
|
syntaxError(tok, code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue