Files
clang-p2996/clang/test/Analysis/stream-notes-missing-close.cpp
Kristóf Umann fc4b09d161 [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").
2024-06-24 16:34:36 +02:00

6.3 KiB