llvm-project
fc4b09d1 - [analyzer] Add an ownership change visitor to StreamChecker (#94957)

Commit
1 year ago
[analyzer] Add an ownership change visitor to StreamChecker (#94957) 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").
Author
Parents
Loading