Fix Travis

This commit is contained in:
Daniel Marjamäki 2018-04-17 14:54:12 +02:00
parent c84628c28a
commit 4f6bd5d607
1 changed files with 1 additions and 1 deletions

View File

@ -942,7 +942,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
if (isLikelyStreamRead(_tokenizer->isCPP(), vartok->previous())) if (isLikelyStreamRead(_tokenizer->isCPP(), vartok->previous()))
return false; return false;
if (_tokenizer->isCPP() && Token::Match(vartok->previous(), "<<")) { if (_tokenizer->isCPP() && Token::simpleMatch(vartok->previous(), "<<")) {
const Token* tok2 = vartok->previous(); const Token* tok2 = vartok->previous();
// Looks like stream operator, but could also initialize the variable. Check lhs. // Looks like stream operator, but could also initialize the variable. Check lhs.