Fix travis build

This commit is contained in:
Daniel Marjamäki 2019-09-12 19:06:42 +02:00
parent d870e4d555
commit 4e076e1854
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
if (possibleParent && possibleParent->isUnaryOp("*")) { if (possibleParent && possibleParent->isUnaryOp("*")) {
while (possibleParent && possibleParent->isUnaryOp("*")) while (possibleParent && possibleParent->isUnaryOp("*"))
possibleParent = getAstParentSkipPossibleCastAndAddressOf(possibleParent, &unknown); possibleParent = getAstParentSkipPossibleCastAndAddressOf(possibleParent, &unknown);
if (possibleParent && Token::Match(possibleParent->previous(), "sizeof (")) if (possibleParent && Token::Match(possibleParent->previous(), "decltype|sizeof ("))
return false; return false;
} }
if (Token::Match(possibleParent, "[(,]")) { if (Token::Match(possibleParent, "[(,]")) {