Try to fix travis. use Token::simpleMatch instead of Token::Match.

This commit is contained in:
Daniel Marjamäki 2016-01-10 21:00:42 +01:00
parent 4269702755
commit 760d5ab7f9
1 changed files with 2 additions and 2 deletions

View File

@ -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, "<<|>>|<<=|>>="))