Try to fix travis. use Token::simpleMatch instead of Token::Match.
This commit is contained in:
parent
4269702755
commit
760d5ab7f9
|
@ -49,7 +49,7 @@ void CheckType::checkTooBigBitwiseShift()
|
||||||
const Scope * scope = symbolDatabase->functionScopes[i];
|
const Scope * scope = symbolDatabase->functionScopes[i];
|
||||||
for (const Token* tok = scope->classStart; tok != scope->classEnd; tok = tok->next()) {
|
for (const Token* tok = scope->classStart; tok != scope->classEnd; tok = tok->next()) {
|
||||||
// C++ and macro: OUT(x<<y)
|
// C++ and macro: OUT(x<<y)
|
||||||
if (_tokenizer->isCPP() && Token::Match(tok, "[;{}] %name% (") && Token::Match(tok->linkAt(2), ") ;") && tok->next()->isUpperCaseName() && !tok->next()->function())
|
if (_tokenizer->isCPP() && Token::Match(tok, "[;{}] %name% (") && Token::simpleMatch(tok->linkAt(2), ") ;") && tok->next()->isUpperCaseName() && !tok->next()->function())
|
||||||
tok = tok->linkAt(2);
|
tok = tok->linkAt(2);
|
||||||
|
|
||||||
if (!Token::Match(tok, "<<|>>|<<=|>>="))
|
if (!Token::Match(tok, "<<|>>|<<=|>>="))
|
||||||
|
|
Loading…
Reference in New Issue