Skip to content

Commit 8fea399

Browse files
Update checkuninitvar.cpp
1 parent d5d5b98 commit 8fea399

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/checkuninitvar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var
844844
}
845845

846846
// assume that variable is assigned
847-
return true;
847+
if (!Token::simpleMatch(tok->astParent(), "<<"))
848+
return true;
848849
}
849850
}
850851
}

0 commit comments

Comments
 (0)