[Analyzer][StreamChecker] Check for opened stream before operations.
Summary: According to documentations, after an `fclose` call any other stream operations cause undefined behaviour, regardless if the close failed or not. This change adds the check for the opened state before all other (applicable) operations. Reviewers: Szelethus Reviewed By: Szelethus Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gamesh411, Charusso, martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75614
Loading
Please register or sign in to comment