summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/stream-notes-missing-close.cpp
AgeCommit message (Collapse)Author
2024-06-24[analyzer] Add an ownership change visitor to StreamChecker (#94957)Kristóf Umann
This is very similar to https://reviews.llvm.org/D105553, in fact, I barely made any changes from MallocChecker's ownership visitor to this one. The new visitor emits a diagnostic note for function where a change in stream ownership was expected (for example, it had a fclose() call), but the ownership remained unchanged. This is similar to messages regarding ordinary values ("Returning without writing to x").