diff options
author | Balázs Kéri <1.int32@gmail.com> | 2020-03-09 10:15:31 +0100 |
---|---|---|
committer | Balázs Kéri <1.int32@gmail.com> | 2020-03-09 11:00:03 +0100 |
commit | ce1a86251bb42fbbc7cc21feb416ed7a0bf411b7 (patch) | |
tree | e73776b555173cf426dc1fdb9e0bb0776997ed89 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6518b72f93f5c2d46f1f0866ff44f65b6ad64af2 (diff) | |
download | llvm-ce1a86251bb42fbbc7cc21feb416ed7a0bf411b7.zip llvm-ce1a86251bb42fbbc7cc21feb416ed7a0bf411b7.tar.gz llvm-ce1a86251bb42fbbc7cc21feb416ed7a0bf411b7.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions